> > The reasons for the K&R style of brace winning is to do > > with the way the brain process structure and despite > > the subjects stated preference for the 'Pascal' style > > they still had lower perception scores. > > Little nit-picking here: > > if(foo) > { > bar(); > } > > Is not K&R style, but Allman style. K&R style (also known as One True > Brace Style or 1TBS) is this:
Correct. The style you show (which I called Pascal style) is the one that doesn't work. K&R style > if(foo) { > bar; > } Is the one that won the shootout. With the outsider(which I dont know a name for!) beating both... if (foo) { bar; } Which is the one that Python uses... Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor