Skip to content

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

@Havvy

Description

@Havvy
Contributor

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.

Activity

added
Language CleanupImprovements to existing language which is correct but not clear, or missing examples, or the like.
on Mar 4, 2021
Havvy

Havvy commented on Mar 10, 2021

@Havvy
ContributorAuthor

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

nikomatsakis

nikomatsakis commented on Mar 16, 2021

@nikomatsakis
Contributor

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

nikomatsakis

nikomatsakis commented on Mar 16, 2021

@nikomatsakis
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

joshtriplett commented on Mar 16, 2021

@joshtriplett
Member

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

changed the title [-]Rename "Value expressions and place expressions" section to "Evaluation categories"[/-] [+]Rename "Value expressions and place expressions" section to "Expression categories"[/+] on Mar 16, 2021
linked a pull request that will close this issue on Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-expressionsArea: ExpressionsLanguage CleanupImprovements to existing language which is correct but not clear, or missing examples, or the like.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @nikomatsakis@joshtriplett@Havvy

      Issue actions

        Rename "Value expressions and place expressions" section to "Expression categories" · Issue #972 · rust-lang/reference