Indent style – Wikipedia, the free encyclopedia
2007/09/14/1035RTFA: http://en.wikipedia.org/wiki/Indent_style#K.26R_st…
The Allman style is common, and is named after Eric Allman. It puts the brace associated with a control statement on the next line, indented to the same level as the control statement. Statements within the braces are indented to the next level.
while (x == y)
{
something();
somethingelse();
}
finalthing();This style is similar to the standard indentation used by the Pascal programming language and Transact-SQL, where the braces are equivalent to the “begin” and “end” keywords.
Meh – not to get overzealous about the topic, but I think this is the easiest to read and write.