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

Separator character in numeric literals #294

Open
JackWilliams-FractureSounds opened this issue Jan 5, 2023 · 1 comment
Open

Separator character in numeric literals #294

JackWilliams-FractureSounds opened this issue Jan 5, 2023 · 1 comment

Comments

@JackWilliams-FractureSounds
Copy link
Collaborator

JackWilliams-FractureSounds commented Jan 5, 2023

1_000_000
1000000

Just ignores '_'

I'm not sure where this should be. Probably within the AST when evaluating IDs.
Otherwise as a preprocessor plugins

@mkruselj
Copy link
Collaborator

Actually C++ does it nicer, which is 1'000'000. I'd much rather agree with that instead of underlines.

@mkruselj mkruselj changed the title (Low Priority) Allow Underscores in Numeric Literals Allow underscores in numeric literals Feb 28, 2023
@mkruselj mkruselj changed the title Allow underscores in numeric literals Separator character in numeric literals Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants