Skip to content

Support underscore in Int literals.#6

Open
davidhesselbom wants to merge 1 commit intomagic-lang:masterfrom
davidhesselbom:master
Open

Support underscore in Int literals.#6
davidhesselbom wants to merge 1 commit intomagic-lang:masterfrom
davidhesselbom:master

Conversation

@davidhesselbom
Copy link
Contributor

@fredrikbryntesson, can you take a look at this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to simplify this? What I'm trying to achieve here is that _ should be allowed between digits, but not at the start or the end of an Int literal, i.e. 123_456_789 is correct, but _123 or 123_ isn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant