[Tutor] Are you allowed to shoot camels? [kinda OT]
Alan Gauld
alan.gauld at freenet.co.uk
Fri Feb 4 10:09:11 CET 2005
> > 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.
More information about the Tutor
mailing list