Skip to content

Rename "Value expressions and place expressions" section to "Expression categories" #972

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

Open
Havvy opened this issue Mar 4, 2021 · 4 comments · May be fixed by #1003
Open

Rename "Value expressions and place expressions" section to "Expression categories" #972

Havvy opened this issue Mar 4, 2021 · 4 comments · May be fixed by #1003
Labels
A-expressions Area: Expressions Language Cleanup Improvements to existing language which is correct but not clear, or missing examples, or the like.

Comments

@Havvy
Copy link
Contributor

Havvy commented Mar 4, 2021

C++ calls them value categories. Since we call one "value expression", I'd like to avoid that term and instead call them a category of some kind. Since the distinction is about what kind of thing the expression evaluates to, I figured "evaluation category" would be the best term.

Having this term would also let me say parenthesized expressions are of the same evaluation category as their enclosed operand.

@Havvy Havvy added Language Cleanup Improvements to existing language which is correct but not clear, or missing examples, or the like. A-expressions Area: Expressions I-lang-nominated labels Mar 4, 2021
@Havvy
Copy link
Contributor Author

Havvy commented Mar 10, 2021

Nominating with the question that adding this term is correct and that the name is alright.

@nikomatsakis
Copy link
Contributor

Perhaps "categories of expressions" or "expression categories"?

@nikomatsakis
Copy link
Contributor

Evaluation seems strange to me because it sounds very much like a property of what happens when the expression executes, but this is more of a category of expression that can be evaluated to a place in memory in some contexts.

@joshtriplett
Copy link
Member

Agreed. We're talking about a name that encompasses "value expression" and "place expression", so "expression category" seems reasonable.

@Havvy Havvy changed the title Rename "Value expressions and place expressions" section to "Evaluation categories" Rename "Value expressions and place expressions" section to "Expression categories" Mar 16, 2021
@Havvy Havvy linked a pull request Apr 6, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-expressions Area: Expressions Language Cleanup Improvements to existing language which is correct but not clear, or missing examples, or the like.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants