News for hackers. Stuff that matters.
Re:Poll: Allman or K&R Indentation? by Peteris on Wednesday July 27, 2011 @01:04PM (#2813030)
There are some languages, e.g., javascript, which practically force you to use K&R. In C++ and Java, I always prefer Allman though. Of course it is more readable than K&R, but, I think the choice is driven by the editor. I use Vim, which makes it dead easy to manipulate lines as a whole. I also like to have single statements without braces, so it is much easier for me to to quickly remove stray '{'s or add them as needed when the number of statements changes within a block.

There are no comments on this comment yet.