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

NL.8: elaborate on reserved identifiers #2131

Merged
merged 4 commits into from
Oct 12, 2023
Merged

Conversation

Eisenwave
Copy link
Contributor

@Eisenwave Eisenwave commented Sep 3, 2023

I feel like the current suggestion just reads like a stylistic recommendation.

In reality, your code might fail to compile, or it could be IFNDR if you use one of those reserved names. There should be at least a little bit of rationale, and leading underscores should also be banned.

Technically, leading underscores aren't always reserved, but it's difficult to memorize all the rules, and it's easy to be safe by just banning them.

@hsutter
Copy link
Contributor

hsutter commented Oct 12, 2023

Editors call: Thanks! Merged with friendly amendments.

@hsutter hsutter merged commit 9b9eecc into isocpp:master Oct 12, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants