From owner-freebsd-chat Tue Jan 23 16: 5:42 2001 Delivered-To: freebsd-chat@freebsd.org Received: from shell.futuresouth.com (shell.futuresouth.com [198.78.58.28]) by hub.freebsd.org (Postfix) with ESMTP id 1CB8A37B404 for ; Tue, 23 Jan 2001 16:05:23 -0800 (PST) Received: (from fullermd@localhost) by shell.futuresouth.com (8.11.1/8.11.1) id f0O03qK29451; Tue, 23 Jan 2001 18:03:52 -0600 (CST) Date: Tue, 23 Jan 2001 18:03:51 -0600 From: "Matthew D. Fuller" To: Stephen McKay Cc: j mckitrick , chat@FreeBSD.ORG Subject: Re: silly C style question Message-ID: <20010123180351.C26758@futuresouth.com> References: <20010122170600.D4456@dogma.freebsd-uk.eu.org> <200101231023.f0NANZI18506@dungeon.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200101231023.f0NANZI18506@dungeon.home>; from mckay@thehub.com.au on Tue, Jan 23, 2001 at 08:23:35PM +1000 X-OS: FreeBSD Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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); > } OK, now you've gone too far. I'm just going to have to kill you. Sorry 'bout that. I always prefer putting the brace on its own line, for ME, it makes it far easier to read the code when the braces line up with each other. I've dealt with many people who insist that the brace belongs at the end of the initiating statement, and I don't much like it, but it's a minor change with which I can deal. But indenting the braces?! That's a stoning offense. I can't read it to save my life. 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. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Unix Systems Administrator | fullermd@futuresouth.com Specializing in FreeBSD | http://www.over-yonder.net/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message