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

spec: typographical inconsistency in character literals #47368

Closed
rillig opened this issue Jul 24, 2021 · 2 comments · Fixed by ferrmin/go#113
Closed

spec: typographical inconsistency in character literals #47368

rillig opened this issue Jul 24, 2021 · 2 comments · Fixed by ferrmin/go#113
Labels
Documentation FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@rillig
Copy link
Contributor

rillig commented Jul 24, 2021

What did you do?

What did you expect to see?

  • The Unicode code points around the text "alert or bell" should be sorted.
  • The Unicode code points around the text "alert or bell" should either use uppercase or lowercase hexadecimal digits.

What did you see instead?

  • There ordering of the code points is not apparent. It is neither alphabetical nor by code point nor "vertical first, then horizontal".
  • U+000D is uppercase, U+000b is lowercase.

These inconsistencies are not critical in any way, I just wondered whether there was some reason for this inconsistency and for ordering the code points in exactly this way.

@ianlancetaylor
Copy link
Contributor

The sorting is alphabetical by the single-character escape.

But I agree that the capitalization ought to be consistent.

@gopherbot
Copy link

Change https://golang.org/cl/337234 mentions this issue: spec: use consistent capitalization for rune literal hex constants

@dmitshur dmitshur added this to the Go1.17 milestone Jul 25, 2021
@dmitshur dmitshur added Documentation NeedsFix The path to resolution is known, but the work has not been done. labels Jul 25, 2021
@dmitshur dmitshur changed the title ref/spec: typographical inconsistency in character literals spec: typographical inconsistency in character literals Jul 25, 2021
@golang golang locked and limited conversation to collaborators Jun 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants