Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2001 11:34:01 -0600
From:      Joe Halpin <joe.halpin@attbi.com>
Cc:        standards@FreeBSD.ORG
Subject:   Re: Emacs and style(9)
Message-ID:  <3C2F5009.30D6EE6F@attbi.com>
References:  <3C2E1481.75D70CE1@attbi.com> <20011230051716.GA80312@madman.nectar.cc> <3C2F1F41.E260DDAA@attbi.com> <20011230.102758.21910806.imp@village.org>

index | next in thread | previous in thread | raw e-mail

"M. Warner Losh" wrote:
> 
> : Eight spaces seems like a lot to me for each indentation level. I
> : generally use two spaces though. I guess it's meant to keep you from
> : nesting the logic in a function too deply :-).
> 
> I have emperical evidence that 2 space indentation styles cause
> more complex and harder to maintain code than 8.  But it is a little
> weak.

Well, this is pretty personal stuff. I doubt that "cause" is the right
word, but I can believe that the smaller the indentation level, the more
inclined someone might be to throw another if (...) or two in there. It
takes some judgement to realize when to break out a block of code into a
separate function.

Still, 8 spaces seems a bit excessive to me, especially if the code
contains long variable names, etc. 

Just my $.02 U.S.

Joe

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C2F5009.30D6EE6F>