From owner-freebsd-chat Wed Jan 24 3:16:15 2001 Delivered-To: freebsd-chat@freebsd.org Received: from ns5.pacific.net.au (ns5.pacific.net.au [203.143.252.30]) by hub.freebsd.org (Postfix) with ESMTP id 06C2037B69F for ; Wed, 24 Jan 2001 03:15:58 -0800 (PST) Received: from dungeon.home (ppp12.dyn249.pacific.net.au [203.143.249.12]) by ns5.pacific.net.au (8.9.0/8.9.1) with ESMTP id WAA26394; Wed, 24 Jan 2001 22:15:54 +1100 (EST) Received: from dungeon.home (localhost [127.0.0.1]) by dungeon.home (8.11.1/8.9.3) with ESMTP id f0OBGYm22317; Wed, 24 Jan 2001 21:16:34 +1000 (EST) (envelope-from mckay) Message-Id: <200101241116.f0OBGYm22317@dungeon.home> To: "Matthew D. Fuller" Cc: j mckitrick , chat@FreeBSD.ORG, mckay@thehub.com.au Subject: Re: silly C style question References: <20010122170600.D4456@dogma.freebsd-uk.eu.org> <200101231023.f0NANZI18506@dungeon.home> <20010123180351.C26758@futuresouth.com> In-Reply-To: <20010123180351.C26758@futuresouth.com> from "Matthew D. Fuller" at "Tue, 23 Jan 2001 18:03:51 -0600" Date: Wed, 24 Jan 2001 21:16:34 +1000 From: Stephen McKay Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tuesday, 23rd January 2001, "Matthew D. Fuller" wrote: >On Tue, Jan 23, 2001 at 08:23:35PM +1000, a little birdie told me >that Stephen McKay remarked >> >> Use neither of these! Use: >> >> if (i == 0) >> { >> foo(i); >> bar(i); >> } >But indenting the braces?! That's a stoning offense. I can't read it to >save my life. Go on! Give it a go! It grows on you. And it's logical too. Just think of the language components like a parser would and group logical units together. >And lemme tell ya, when you get 70 or 80,000 lines of code >with that style, and re-indent it all, it makes one hell of a cvs diff. I know I'm not popular when "indent" can't generate my style. It can't even come close. Maybe I should fix the bugs in "indent"... Anyway reindenting is a bad idea if the original code has any identifiable style. Go ahead and reindent the stuff that is erratically arranged (I've seen plenty of it), but leave the rest alone. Stephen. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message