-
Notifications
You must be signed in to change notification settings - Fork 1
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
(parser) Support underscores in integer literals #221
Conversation
Interestingly enough, no - it fails (just like before?).
This one is even worse. Will check with the commit right before to see if it's the same there or if this is a regression introduced by this PR.
|
Confirmed - it worked correctly (no
I'll see if I can at least get rid of the exception. In the best of worlds, we should probably support underscores in floating-point literals as well. |
Fixed in #222. |
Similar to #221, but for floating point values.
This is really "syntactic sugar" at its finest. No sensible person could claim that this is a required language feature, but it sure is nice to have stuff like this when you need it (perhaps especially when working with many integer literals).
(Btw, the PR probably supports underscore in floating-point literals as well, I haven't tried. 馃榿)