Skip to content

feature: Allow underscore for numerical constants #31990

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

Closed
pjebs opened this issue May 13, 2019 · 1 comment
Closed

feature: Allow underscore for numerical constants #31990

pjebs opened this issue May 13, 2019 · 1 comment

Comments

@pjebs
Copy link
Contributor

pjebs commented May 13, 2019

Swift allows writing underscores for numerical constants to help read large numbers more easily.

Go should allow it too:

t := 1000000000000
OR
t := 1_000_000_000_000 // Much easier to read number
@jimmyfrasche
Copy link
Member

Good news: duplicate of #28493

@golang golang locked and limited conversation to collaborators May 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants