Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2001 15:17:39 +1300
From:      Craig Harding <crh@outpost.co.nz>
To:        freebsd-chat@freebsd.org
Subject:   Re: silly C style question
Message-ID:  <3A6CE9C3.52CD9504@outpost.co.nz>
References:  <20010122170600.D4456@dogma.freebsd-uk.eu.org> ; from j mckitrick <jcm@FreeBSD-uk.eu.org>  "Mon, 22 Jan 2001 17:06:00 GMT." <3A6C6E80.4535.632D3C1@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Freddie Cash wrote:
 
> However, there is no such thing as "The One True Style" just as there is
> no such thing as "The Perfect Pair of Pants", or "The One True Cookbook".
>  Everyone has their own way, and so long as it is legible to the vast
> majority, then it works for me.

I'm sorry, but I can't resist the temptation to quote ESR:

From the jargon file entry for "indent style":

> Surveys have shown the Allman and Whitesmiths styles to be the
> most common, with about equal mind shares. K&R/1TBS used to be
> nearly universal, but is now much less common in C (the opening
> brace tends to get lost against the right paren of the guard
> part in an if or while, which is a Bad Thing). Defenders of
> 1TBS argue that any putative gain in readability is less
> important than their style's relative economy with vertical
> space, which enables one to see more code on one's screen at once.

(1TBS: 1 True Brace Style)

For the full entry, see:
http://www.tuxedo.org/~esr/jargon/html/entry/indent-style.html

						-- C.


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A6CE9C3.52CD9504>