Re:This will make some people mad (JS/Dart)
by JohnHaugeland on Friday September 12, 2014 @11:36AM
(#8308588)
It's breathtaking when someone asks for examples, then discards the answer they get as too common.
Re:This will make some people mad (JS/Dart)
by mythz on Friday September 12, 2014 @11:52AM
(#8308708)
Things that rarely happen in practice aren't mine-fields. The only common thing in this issue is that it's brought up in every Dart thread, the actual issue of integer overflows is itself rare and usually an indication of a bug in your program.
There is a VM and command-line `throw_on_javascript_int_overflow` flag that can be used to throw an error if there is any such overflow in your app.
Ideally when BigNums lands in JS this will no longer be an issue.