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

[gram.key] Replace 'context-dependent keywords' with 'names' #6837

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Eisenwave
Copy link
Contributor

Fixes #6486.

@jwakely commented that all these declarations introduce "names". That's the wording I am familiar with and find less confusing.

As already noted, the wording "context-dependent keywords" dates back to C++98. I think it's safe to assume that this is simply immature/antiquated wording that's more common in the original standard.

Copy link
Member

@jwakely jwakely left a comment

Choose a reason for hiding this comment

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

I like this, but Core experts should decide this one.

@@ -18,7 +18,7 @@

\pnum
\indextext{keyword}%
New context-dependent keywords are introduced into a program by
New names are introduced into a program by
Copy link
Member

Choose a reason for hiding this comment

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

And function and variable declaration are different? In what respect?

I think this entire paragraph should just be removed.

@zygoloid , do you have an idea what this does here?

Copy link
Member

Choose a reason for hiding this comment

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

I think this is trying to describe the so-called lexer hack, whereby the grammatical interpretation of the program depends on the result of name lookup. I don't think this really gets there for me, though, and it'd be more useful to say that an identifier is only a foo-name if name lookup finds a foo, analogous to this.

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.

[gram.key] Is it in a C++98 state, or is it intentional?
4 participants