Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Numeric Separators #3533

Open
jpodeszfa opened this issue Feb 17, 2021 · 4 comments
Open

Feature request: Numeric Separators #3533

jpodeszfa opened this issue Feb 17, 2021 · 4 comments
Labels

Comments

@jpodeszfa
Copy link

https://github.com/tc39/proposal-numeric-separator

example:

const test = 1_000_000;

jshint result:
Problem at line 1 character 14: Unexpected '1'.

It is supported by all major browsers:
https://caniuse.com/mdn-javascript_grammar_numeric_separators

@jugglinmike
Copy link
Member

Sounds good. Any chance you want to give it a shot?

By the way, this project's criteria for supporting new JavaScript language features is based on the standardization process, not the implementation status.. Numeric separators became fair game for us when it entered "Stage 2" of TC-39's standardization process.

@almercier
Copy link

@jugglinmike Since this has reached stage 4 and is officially part of ECMAScript 12 (2021), would it be better to set up a feature branch first that encapsulates the various changes needed for ES12 support? Similar to how you handled ES11 with the v2.13 feature branch #3486?

I imagine there could be an issue where multiple PRs both would try to add the ES12 setting, whereas it could all be setup beforehand in the feature branch.

@Giszmo
Copy link

Giszmo commented Dec 19, 2023

Two years on JSHint still wants me to not use Numeric Separators :(

@Joxter
Copy link

Joxter commented Feb 22, 2024

one more year:(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants