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

[lex.ccon]/p2 Reword long sentence so it's easier to parse #5033

Closed
burblebee opened this issue Oct 17, 2021 · 0 comments · Fixed by #5059
Closed

[lex.ccon]/p2 Reword long sentence so it's easier to parse #5033

burblebee opened this issue Oct 17, 2021 · 0 comments · Fixed by #5059
Assignees

Comments

@burblebee
Copy link
Contributor

burblebee commented Oct 17, 2021

We have the following sentence in [lex.ccon]/p2:

"The examples in Table 9 for non-encodable ordinary and wide character literals assume that the specified
character lacks representation in the ordinary literal encoding or wide literal encoding, respectively, or that encoding it would require more than one code unit."

I read it as:
"The examples in Table 9 for non-encodable ordinary and wide character literals assume

  • that [...], or
  • that encoding it would require more than one code unit."

What is "it"? The "examples"? The "literals"? Neither makes sense. "it" is supposed to refer to "the specified character" introduced in the 1st part of the or'ed list, so should be parsed as if it were:

"The examples in Table 9 for non-encodable ordinary and wide character literals assume that the specified
character

  • lacks representation in the ordinary literal encoding or wide literal encoding, respectively, or
  • would require more than one code unit to encode."

The simplest fix is to replace "it" with "the specified character".

Originally posted by @burblebee in #5004 (comment)

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 a pull request may close this issue.

2 participants