Hacker News new | ask | show | jobs
by perfmode 3104 days ago
For C++, I subscribe to Google style. It addresses this.

https://google.github.io/styleguide/cppguide.html#Function_D...

1 comments

Geez how does anyone remember all of that...
Your linter remembers for you.
Indeed, the very best kind of coding convention is the automated and enforced kind. Prevents a lot of arguing, leaving more time to argue about the code's actual contents.
That’s a core challenge of writing code in a language as large and complicated and dangerous and rewarding as cpp.