Support underscores in numbers
There is currently an active proposal for this: tc39/proposal
See [1].
[1] tc39/proposal
Oops, I'm an idiot and didn't see this. On 26/07/2017 21:49:11, Logan Smyth <loganfsmyth at gmail.com> wrote:
There is currently an active proposal for this: tc39/proposal-numeric-separator [tc39/proposal-numeric-separator]
On Wed, Jul 26, 2017 at 1:47 PM, Alexander Craggs <alexander at debenclipper.com [mailto:alexander at debenclipper.com]> wrote:
Large number are hard to read in JavaScript, is 2384923842 over a billion? Or just several hundred million. One solution to this some languages have used is to allow underscores within numbers. You can immediately recognise 2_384_923_842 is a number in the billions, rather than millions.
It would be nice to have such delimiters in large numbers in JavaScript as well, and I don't think it would be breaking.
On Wed, Jul 26, 2017 at 9:50 PM, Alexander Craggs < alexander at debenclipper.com> wrote:
Oops, I'm an idiot and didn't see this.
:-) Just FWIW for future (and lurkers), proposals are listed in the proposals repo (that links to active; also check "inactive" and "finished" which it links to). Also worth searching the mailing list archive and/or esdiscuss.org (which provides a different -- and searchable -- view of the list).
-- T.J. Crowder
Large number are hard to read in JavaScript, is 2384923842 over a billion? Or just several hundred million. One solution to this some languages have used is to allow underscores within numbers. You can immediately recognise 2_384_923_842 is a number in the billions, rather than millions.
It would be nice to have such delimiters in large numbers in JavaScript as well, and I don't think it would be breaking.