From owner-freebsd-current Thu May 30 13:59:38 2002 Delivered-To: freebsd-current@freebsd.org Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id D21F137B407; Thu, 30 May 2002 13:59:25 -0700 (PDT) Received: from pool0529.cvx40-bradley.dialup.earthlink.net ([216.244.44.19] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #2) id 17DX0s-0000pE-00; Thu, 30 May 2002 13:59:15 -0700 Message-ID: <3CF69282.F60E22FD@mindspring.com> Date: Thu, 30 May 2002 13:58:42 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin Cc: Matthew Dillon , FreeBSD current users , David O'Brien , Julian Elischer Subject: Re: Seeking OK to commit KSE MIII References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Baldwin wrote: > This is your opinion not gospel truth. The reason I and others leave out > braces except when they are needed is to minimize the number of wasted > vertical space so that more code can fit on a screen at a time. This is > the same reason for using > > if (foo) { > ... > } > > Instead of: > > if (foo) > { > ... > } Actually, that's a tools issue; specifically, it has to do with "%" and "$" in "vi". Just like: int foo( x) instead of: int foo(x) Has todo with "grep ^name " for function declatation finding, vs. references. As for "extra braces", I've seen people do: #if foo /* { */ ... #else /* !foo } { */ #endif /* !foo } */ To let people use statement start/end block matching on "#if", too. Our tools dictate a lot of what people say constitutes "style", but what really works out to be "efficient use of tools". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message