Replies: 1 comment
-
According to the inestimable Raymond Chen, leading underscores are permitted in C++ identifiers if the next letter is lowercase. (Also, I neither quite got the practice of putting trailing underscores on instance variables. To me it looks really weird and sticks out like a sore thumb when read. I would rather use no underscore at all.) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As far as I know, it's not recommended to name an identifier with a leading underscore, but I see
WinUI C++/WinRT code-behind class variable names start with a leading underscore.
Wouldn't it rather be better to use a trailing underscore?
Beta Was this translation helpful? Give feedback.
All reactions