by dlojudice · 5y ago · 0 comments
I believe language evolution like ES6 are more than welcome. However, I have the impression that the path taken by the committee and the new proposals do not bring great gains (whether in UX, code reading, performance, etc.) but bringing unnecessary complexity.
On the other hand, other serious problems such as the mathematical and numerical part of the language are being left aside.
– BigInts (arbitrary precision integers) were a recent addition: https://exploringjs.com/impatient-js/ch_bigints.html
– A proposal for `Decimal` (base 10 floating point numbers with arbitrary precision) is currently at stage 1: https://github.com/tc39/proposal-decimal
Not having 64 bit integers is a large annoyance. There’s workarounds but none of them are especially ergonomic.
The expression n | 0 is a signed 32 bit int. The expression n >>> 0 is an unsigned 32 bit int.