-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Enforce template syntax typename
over class
#89270
Enforce template syntax typename
over class
#89270
Conversation
f3ba99d
to
9903e67
Compare
Has this been agreed upon? Is |
I'm not convinced by this change, it's entirely aesthetic and clutters the log a lot |
...You know what, fair point. While it's strictly aesthetic regardless of what's chosen, I did jump the gun with a unilateral
Shoot, thanks for reminding me about the log noise; added an accompanying |
Also, this is really backwards IMO, there's far more cases of |
Should we not have a chat about this on RocketChat? Have Akien chime in, too? |
Agreed; made a post now in |
This comment was marked as off-topic.
This comment was marked as off-topic.
@jordo Please don't bump without contributing significant new information. Use the 👍 reaction button on the first post instead. |
Are we sure about that? In MSVC, |
Replacing Also, I'd say |
I don't care much either way personally. Both terms seem to be pretty much equivalent. The main compelling arguments I've found online are:
I think (1) is a decent argument for using Going with (2) can be interesting, but requires some more work to keep consistent across the codebase than a plain "always using
How so? What's the difference with |
From what I understand, templates handle the This perceived ambiguity is part of why I'm in favor of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the discussion so far, I'm in favor of the change, it's less ambiguous this way.
Thanks! |
Starting from c++20 struct is a NTTP |
Cleanup commit meant to standardize template
class
vstypename
naming conventions, opting for the latter. Nothing functionally changes as a result of this, beyond uniformity across all templates.