Comment by eru
3 years ago
Ending up with a nonsense result ain't great, but it's still a step up from losing all guarantees about the behaviour of your program.
By the way, throwing an error on overflow is also a perfectly valid way to get defined behaviour and not end up with a nonsense value.
No comments yet
Contribute on Hacker News ↗