3 ms·
> - Where are decimals, to avoid things like `parseInt(0.00000051) === 5`? There is a draft proposal for this: https://github.com/tc39/proposal-decimal https:/
by creatonez 2y ago
> - Where are decimals, to avoid things like `parseInt(0.00000051) === 5`?
There is a draft proposal for this: https://github.com/tc39/proposal-decimal https://github.com/tc39/proposal-decimal
Additionally, BigInt has been available for years: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... (unfortunately does not serve as a u64 / i64 replacement due to performance implications and lack of wrapping/overflow behavior)
> - Why are inbuilt globals allowed to be modified?
> Error/null handling are still haphazard things.
How would you suggest addressing these in a way that is backwards compatible with all existing web content?
- thaumasiotes 2y ago> How would you suggest addressing these in a way that is backwards compatible with all existing web content? Version numbers. Solving the problem in the future but not the past is still better than leaving it unsolved in the future and the past.