On Fri, 29 Aug 2003 12:47:34 -0500 Ron Johnson <[EMAIL PROTECTED]> wrote: > On Fri, 2003-08-29 at 08:30, Steve Lamb wrote: > > On Fri, 29 Aug 2003 08:19:10 -0500 > > Ron Johnson <[EMAIL PROTECTED]> wrote: > > > I wouldn't be surprised if most Python programmers prefer BSD style. > > I find it the worst of the three I presented. > Color me surprised. Why do you think it's the worst?
Because of the excessive vertical separation. Of the three I presented
(which I don't know the names, my apologies) I prefer (and code in) B. EG:
if cond {
block
}
else {
block
}
A, which I believe is what you're referring to as BSD style, has the
excessive vertical separation. C has the problem that else, which is an
important keyword for understanding the code, does not being in the first
column. B has the shortest vertical footprint, has the closing braces line up
with the appropriate block and keeps all keywords relevant to the current
block unobscured and in an obvious location.
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
PGP Key: 8B6E99C5 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
pgp00000.pgp
Description: PGP signature

