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
Support additional numeric literals: octal, binary, hexadecimal and numeric separators #177
Comments
is this issue about: parsing extra formats, so we could write
or supporting extra formats as a raw type:
? |
The second one:
This is just a text:
|
then it is already automatically supported (its on the JS side, not ours) |
Awesome! Can we add a test then? Binary, Octal, Hex, BigInt and Numeric Separator. |
do we want BigInt support? this is potentially a large rework (coercions, math functions, etc)? |
No. We don't want it to throw an error either |
what do you mean? what is the desired behaviour then? |
A message that it is not supported #195 |
Like a console.log() warning? should we also try to cast it to float? |
I was thinking about throwing the
IMO No. No magic. Either we support it or not. |
Since we merged other PR, we now have toolset for such error messages. Added. |
Typescript requirements bumped in #211 Thx |
Description
Since #122 we support literal JS numeric formats but limited to integers and floats.
There are more numeric literals in JS: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Numeric_literals
They should be handled by #176 as an unsupported input ATM so this can be treated as a feature request for the future.
Links
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#Numeric_literals
The text was updated successfully, but these errors were encountered: