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

The term "full-expression" is not a grammar production #2885

Closed
jabelloc opened this issue May 17, 2019 · 4 comments
Closed

The term "full-expression" is not a grammar production #2885

jabelloc opened this issue May 17, 2019 · 4 comments

Comments

@jabelloc
Copy link

Replace all references (38) to the term "full-expression" with "full expression", as a full expression is not a grammar production.

@cpplearner
Copy link
Contributor

cpplearner commented May 17, 2019

Is there a rule against using hyphen in a term? Plus, "full expression" suggest that it is a kind of expression, but sometimes it is not.

@jabelloc
Copy link
Author

AFAICT this is the sole exception in the standard about what seems to be an informal rule.

@zygoloid
Copy link
Member

We have other terms containing hyphens, such as cv-qualifier, parameter-type-list, injected-class-name, and so on. This is not a defect. Non-defining uses of such terms are formatted in upright text, which should visually distinguish them from grammar terms. There is, however, a visual ambiguity between the definition of such terms and grammar productions, but we discussed that in the context of #323 and decided to take no action.

@FrankHB
Copy link
Contributor

FrankHB commented May 19, 2019

I'm not trying to revive the issue (because it has nothing to do with hyphens vs. grammar production) but the current use of "full-expression" does have some problems raised from the hyphen. For instance, the localization (e.g. translation in the localized standards) of the ISO C++ rules is more difficult to be precise due to lack of hyphen in the result. This is not same to the cases like cv-qualifiers because prefixed cv is not an adjective by itself, so the hyphen is preserved naturally.

Also @cpplearner, the fact that a full-expression is not necessarily a kind of expression makes the problem worse in another aspect. Why on earth such a context is named after a phrase of "expression"? (This does not seem to be editorial, though.)

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

No branches or pull requests

4 participants