From owner-freebsd-chat Mon Jan 22 17:13:49 2001 Delivered-To: freebsd-chat@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id E7B1437B400 for ; Mon, 22 Jan 2001 17:13:31 -0800 (PST) Received: by bazooka.unixfreak.org (Postfix, from userid 1000) id CEA1A3E02; Mon, 22 Jan 2001 17:13:30 -0800 (PST) Received: from unixfreak.org (localhost [127.0.0.1]) by bazooka.unixfreak.org (Postfix) with ESMTP id C6AC73C10A; Mon, 22 Jan 2001 17:13:30 -0800 (PST) To: Mark Murray Cc: j mckitrick , freebsd-chat@FreeBSD.ORG Subject: Re: silly C style question In-Reply-To: Message from Mark Murray of "Mon, 22 Jan 2001 19:43:19 +0200." <200101221743.f0MHh7I61638@gratis.grondar.za> Date: Mon, 22 Jan 2001 17:13:25 -0800 From: Dima Dorfman Message-Id: <20010123011330.CEA1A3E02@bazooka.unixfreak.org> Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > if (0 == i) > > { > > foo(i); > > bar(i); > > } > > IMHO, this wastes one line of screen space. I only use it for functions. As you already mentioned, this is grade-A bikeshed material; however, the counter-argument to this is: if (0 == i) { foo(i); bar(i); } Personally, I like the one you quoted (brace on a line of its own), but I'd much rather use this than tacking a brace on the end of the if() line, which is plain ugly, IMO. Just thought I'd throw some more kindling on the fire. Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message