-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Weaken digit separator placement rules #1983
Weaken digit separator placement rules #1983
Conversation
8c48457
to
f004306
Compare
Would it be possible to update https://github.com/carbon-language/carbon-lang/blob/trunk/docs/design/lexical_conventions/numeric_literals.md#digit-separators and https://github.com/carbon-language/carbon-lang/blob/trunk/docs/design/README.md#integer-literals as part of this PR or file an issue to make those changes? |
proposals/p1983.md
Outdated
- For hexadecimal in particular, there are microformats where different | ||
placement rules may be desirable. For example, MAC addresses are typically | ||
in byte pairs (`00-B0-D0-63-C2-26`) and UUIDs have particular groupings | ||
(`123e4567-e89b-12d3-a456-426614174000`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also decimal numbers: credit card numbers, ISBN, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed this to point at the alternatives for examples, because that already covers more. (I'd like to avoid duplicating that much content)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly some minor wording comments on the proposal.
Co-authored-by: Chandler Carruth <[email protected]>
…w/carbon-lang into proposal-digit-separators
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Response round
I'd prefer to handle updates separately. I don't think we should file an issue for implementing unapproved proposals. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Co-authored-by: Richard Smith <[email protected]>
Co-authored-by: Richard Smith <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! The leads are happy with this.
This changed in #1983 and although we updated explorer, we missed toolchain.
…anguage#4150) This changed in carbon-language#1983 and although we updated explorer, we missed toolchain.
Proposal #143: Numeric literals added digit separators with strict rules for placement. It missed some use-cases. In order to address this, remove placement rules for numeric literals.
Related issue: #1485