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

Can we do something about "constant-initialized" vs "constant initialization" #6525

Closed
Eisenwave opened this issue Aug 27, 2023 · 1 comment

Comments

@Eisenwave
Copy link
Contributor

Eisenwave commented Aug 27, 2023

See constant-initialized vs. constant initialization.

These terms mean something completely different, but they share the same name, with the only difference between them being hyphenation. This has idiotic consequences:

void foo() {
    // x is constant-initialized
    // constant initialization does not take place
    int x = 0;
}

A user of the language, or an author of a paragraph in the standard could completely change the meaning of a paragraph by forgetting a hyphen, or accidentally inserting one.

@Eisenwave Eisenwave changed the title Can we do something about "constant-initializer" vs "constant initialization" Can we do something about "constant-initialized" vs "constant initialization" Aug 27, 2023
@Eisenwave
Copy link
Contributor Author

Eisenwave commented Aug 27, 2023

Nvm, duplicate of #4955

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

1 participant