[Tutor] Re: Are you allowed to shoot camels? [kinda OT]

Alan Gauld alan.gauld at freenet.co.uk
Fri Feb 4 19:32:30 CET 2005


> > XXXXXXXXXXXX
> >     XXXXX
> >     XXXXX
> >     XXXXX
> >
> > Thats Python! Since you are on this list I suspect you do write
> > "code like that" Its just Guido removed the now extraneous {}...
>
> My favorite, Allman style, is also Python if you remove the {} !

Yep but the braces in Allman completely wreck the block structure

XXXXXXXXXXXXXXXXX
XXX
   XXXXXX
XXX

> BTW, Steve McConnell recommends your favorite too in Code Complete.
But
> he also didn't manage to convince me.

Thats where I first found it, I looked up a couple of references and
the
message was consistent, so I changed my style. (And my emacs settings
:-)

Alan G.



More information about the Tutor mailing list