reference icon indicating copy to clipboard operation
reference copied to clipboard

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

Open Havvy opened this issue 4 years ago • 4 comments

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 avatar Mar 04 '21 05:03 Havvy

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

Havvy avatar Mar 10 '21 00:03 Havvy

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

nikomatsakis avatar Mar 16 '21 17:03 nikomatsakis

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.

nikomatsakis avatar Mar 16 '21 17:03 nikomatsakis

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

joshtriplett avatar Mar 16 '21 17:03 joshtriplett