From owner-freebsd-chat Thu Jan 25 9: 7:30 2001 Delivered-To: freebsd-chat@freebsd.org Received: from shellyeah.org (zippy.shellyeah.org [140.186.112.25]) by hub.freebsd.org (Postfix) with SMTP id 4E72637B401 for ; Thu, 25 Jan 2001 09:07:13 -0800 (PST) Received: (qmail 24511 invoked by uid 0); 25 Jan 2001 17:07:12 -0000 Received: from zippy.shellyeah.org (jcm@140.186.112.25) by zippy.shellyeah.org with SMTP; 25 Jan 2001 17:07:12 -0000 Date: Thu, 25 Jan 2001 12:07:11 -0500 (EST) From: Jonathon McKitrick To: Stephen McKay Cc: "Matthew D. Fuller" , j mckitrick , chat@FreeBSD.ORG Subject: Re: silly C style question In-Reply-To: <200101241116.f0OBGYm22317@dungeon.home> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > >> Use neither of these! Use: > >> > >> if (i == 0) > >> { > >> foo(i); > >> bar(i); > >> } > 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. I see your point, but not indenting the brace saves a keystroke, and that can add up. Also, following the column straight down from the 'if' or other conditional takes you directly to where the execution path continues. I like that better than just following the indentation. jcm To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message