-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Extended Numeric Literals #24828
Comments
I think that would be a great feature, but also that it could cause confusion for newbies who would read code from teammates |
I don't think this will reach stage-3 in the near future (1-3 years) |
This is already used with the arrival of BigInt. And with success has taken hold in such modern languages like Rust, Ruby, Swift |
@MaxGraey So I think that this feature is related to Javascript, not Typescript |
If this will land in JavaScript it should support by Typescript as well, isn't it? String templating with tags has been pretty useful feature. Extended numeric literals just like templating but for numbers |
@MaxGraey Yes it is |
Closing since there's nothing for us to do but wait for TC39 |
Search Terms
Suggestion
Support tc39/proposal-extended-numeric-literals (Stage 1)
Use Cases
For represent lengths in pixels, inches, degrees, radians, seconds and other units without calling specifically conversion methods in runtime (if this possible).
Examples
Also related to #15096
The text was updated successfully, but these errors were encountered: