Hacker News new | past | comments | ask | show | jobs | submit login

Trailing underscores are my go to for resolving conflicts with keywords. It's a much more consistent and trivial to remember rule than random misspellings or synonyms of keywords (casts side-eye to `klazz`).



don't understand this at all - why would you want to use a keyword as a name, and the last bit of the comment makes no sense at all.


If you're implementing some sort of persistency or reflection system in C++, 'Class* clazz' isn't all that unusual.


maybe you build a game and the character has a... class?


what is so special about the underscore that makes it differentiable?




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: