-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Disallow Uppercase Radix Prefixes? #2060
Comments
never seen them used anywhere in any language, so 👍 |
+1. I hated adding |
Great -- feel free to patch and merge then, if anyone has a minute to take a crack at it. |
I think I can handle this right after lunch, unless anyone's already done it? |
Hmm... What about exponents? |
Yep. |
What about hex A to F? Are we restricting them to lower (or upper?) case as well? |
I use them, occasionally, precisely because they're not subtle. I have three instances of capitalized hexes in code I wrote just today (magic numbers for parsing font binaries). OTTO = 0x4F54544F
csa = 0xB1B0AFBA - checksum
|
Yeah, I think leave hex A-F either way would be fine. |
Issue #2060 Disallow uppercase radix prefixes and exponential notation
ping @michaelficarra (this can be closed, no?) |
There's seems to be some agreement in TC39 that the uppercase forms of radial prefixes are undesirable in general, despite the longstanding existence of
0Xffc
...https://mail.mozilla.org/pipermail/es-discuss/2012-January/019735.html
Since CoffeeScript has no such obligation to JavaScript backwards-compatible syntax, should we simply remove uppercase radix prefixes from the language, only leaving:
0b...
,0o...
and0x...
?The text was updated successfully, but these errors were encountered: