Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wamaral
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
wamaral
9y ago
OP was talking about a compiler option, that most likely would not break anything unless you enable the flag. As for choice, I'll take "here's what happens" vs "your code is in the hands of fate now" any day. G
2.
▲
by
wamaral
9y ago
Rather define the behaviour of what happens when addition of two ints exceed the maximum allowed value.
3.
▲
by
wamaral
9y ago
Then by all means reject it, way better than blowing up in production.
4.
▲
by
wamaral
9y ago
If the language does not prevent these mistakes from happening where it would be possible to do so, isn't the language at fault?
5.
▲
by
wamaral
10y ago
Only yesterday I implemented this in an application, although a bit simpler (is the user < n pixels from the bottom of the document? then render more heavy stuff) so yeah, that's a pretty recurrent use case for a library like that.
6.
▲
by
wamaral
10y ago
I'm curious, is there a specific use case for using such a language today? Is it just legacy?