News for hackers. Stuff that matters.
Re:Humans should think of sizeof() as a function, says Linus... by harkyns_castle on Saturday May 30, 2015 @08:51AM (#9629997)
Most C++ codebases I've seen have the brace on a fresh line, most Java codebases at the end of the line (at a guess born of the Sun guidelines and default Eclipse formatting perhaps). I started with the former, but prefer the latter now.

To me its more about conserving an extra bit of vertical space... I like my methods/functions quite compact. In the past I liked the balanced nature of the braces though.

Makes absolutely no appreciable difference though of course, as long as you don't get into a formatting war with your team.

There are no comments on this comment yet.