4 ms·
I'm relatively new to C++, is this style common? I refer to, for example, putting the return of function on a separate line from the name and each of the passed
by ApostleMatthew 9y ago
I'm relatively new to C++, is this style common? I refer to, for example, putting the return of function on a separate line from the name and each of the passed parameters on a separate line as well.
- perfmode 9y agoFor C++, I subscribe to Google style. It addresses this. https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_Definitions https://google.github.io/styleguide/cppguide.html#Function_D...
- cyberpunk0 9y agoGeez how does anyone remember all of that...
- ZeroCool2u 9y agoYour linter remembers for you.
- CobrastanJorji 9y agoIndeed, 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.
- perfmode 9y agoThat’s a core challenge of writing code in a language as large and complicated and dangerous and rewarding as cpp.
- jdright 9y agoThere is no common style in C or C++. This is a free for all area, even with clang format.