From owner-freebsd-chat Mon Jan 22 11:16:55 2001 Delivered-To: freebsd-chat@freebsd.org Received: from mail.bfm.org (mail.bfm.org [216.127.218.26]) by hub.freebsd.org (Postfix) with ESMTP id 9021F37B400 for ; Mon, 22 Jan 2001 11:16:37 -0800 (PST) Received: from WhizKid (rh10.bfm.org [216.127.220.203]) by mail.bfm.org (Post.Office MTA v3.5.3 release 223 ID# 0-52399U2500L250S0V35) with SMTP id org; Mon, 22 Jan 2001 13:18:33 -0600 Message-Id: <3.0.6.32.20010122131649.009c9730@mail85.pair.com> X-Sender: whizkid@mail85.pair.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 22 Jan 2001 13:16:49 -0600 To: j mckitrick , freebsd-chat@FreeBSD.ORG From: "G. Adam Stanislav" Subject: Re: silly C style question In-Reply-To: <20010122170600.D4456@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 17:06 22-01-2001 +0000, j mckitrick wrote: >When using opening and closing braces for a loop or other control structure, >most coders put the opening brace on the same line as the decision >statement. It seems to me, using it in more of a block format would make >the code easier to read. Does this make sense? I am not sure that it makes it easier to read (since the indentation clearly shows where the block starts and ends), but if it makes sense to you, by all means, use it. Personally, I prefer the K&R style because it keeps all the logic on one line and, as someone else pointed out, it saves one line of display space. But the whole point of C style is that you develop your own. Not every painter is a cubist, some are dadaists (and most are neither). That does not make them better--or worse--just different. Cheers, Adam --- Whiz Kid Technomagic - brand name computers for less. See http://www.whizkidtech.net/pcwarehouse/ for details. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message