4 ms·
I agree this needs to be fixed in JS. And I have been following the ES strawmen/proposals. Not sure if I like suffixes. The approach in Dart seems to work well
by xxgreg 12y ago
I agree this needs to be fixed in JS. And I have been following the ES strawmen/proposals. Not sure if I like suffixes. The approach in Dart seems to work well too.
In JS the overflow is often silent and is easy to miss. Since the DartVM can throw an exception on overflow this makes it easier to catch. So the Dart toolchain is an improvement, but also not ideal.
Where correctness is important there are also 32/64bit and bignum libraries which can be compiled to js but are slow.
Edit: Mythz used exactly the same phrase. Jinx.