Better HN
topnewbestaskshowjobs
Log inSign up

wamaral

9 karma · joined Jul 11, 2016 (10y ago) · 6 submissions

[ my public key: https://keybase.io/wamaral; my proof: https://keybase.io/wamaral/sigs/88ZZDJVcAjOBTw7ELQvZ40e2pXLK9JcKDzR4OcD83pk ]
Submissions

comment 9y ago · link · parent

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. Glad we do have choice.

comment 9y ago · link · parent

Rather define the behaviour of what happens when addition of two ints exceed the maximum allowed value.

comment 9y ago · link · parent

Then by all means reject it, way better than blowing up in production.

comment 9y ago · link · parent

If the language does not prevent these mistakes from happening where it would be possible to do so, isn't the language at fault?

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

I'm curious, is there a specific use case for using such a language today? Is it just legacy?