3 ms·
About the C++ version: You have to be an absolute weirdo to (sometimes) put the opening brace of functions on the same line, but on the next line for if and for
by ahartmetz 9mo ago
About the C++ version: You have to be an absolute weirdo to (sometimes) put the opening brace of functions on the same line, but on the next line for if and for bodies.
- galangalalgol 9mo agoI think there was a name for that brace style? It seems silly, but leaving c++ development after decades for a variety of reasons, it turned out a standard formatting tool was one of my favorite features.
- ahartmetz 9mo agoFor mixing styles like that? int myFunc(int foo){ if (foo > 42) { frobnicate(); } }
- galangalalgol 9mo agoI was getting it confused with gnu style, which indents braces for control flow but not functions