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

Allow _ in numbers #83

Merged
merged 1 commit into from
Oct 12, 2024
Merged

Allow _ in numbers #83

merged 1 commit into from
Oct 12, 2024

Conversation

slotThe
Copy link
Contributor

@slotThe slotThe commented Oct 12, 2024

The spec is quite clear that underscores may be used pretty much anywhere inside of (and even at the end) of a number. A simpler form of this is to simply accept underscores whenever we accept numbers, which is what this commit implements.


In short, we now allow things like 1_000, 1e42_000, and even 1_, but not _100, which seems explicitly forbidden by the spec.

The spec is quite clear that underscores may be used pretty much
anywhere inside of (and even at the end) of a number. A simpler form of
this is to simply accept underscores whenever we accept numbers, which
is what this commit implements.
@AndersonTorres AndersonTorres merged commit c7b71c8 into museoa:trunk Oct 12, 2024
1 check failed
@slotThe slotThe deleted the _numbers branch October 12, 2024 18:10
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.

2 participants