From owner-freebsd-chat Mon Jan 22 9:46:16 2001 Delivered-To: freebsd-chat@freebsd.org Received: from gratis.grondar.za (grouter.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id 70C0B37B6B3 for ; Mon, 22 Jan 2001 09:45:56 -0800 (PST) Received: from grondar.za (root@gratis.grondar.za [196.7.18.133]) by gratis.grondar.za (8.11.1/8.11.1) with ESMTP id f0MHh7I61638; Mon, 22 Jan 2001 19:43:13 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <200101221743.f0MHh7I61638@gratis.grondar.za> To: j mckitrick Cc: freebsd-chat@FreeBSD.ORG Subject: Re: silly C style question References: <20010122170600.D4456@dogma.freebsd-uk.eu.org> In-Reply-To: <20010122170600.D4456@dogma.freebsd-uk.eu.org> ; from j mckitrick "Mon, 22 Jan 2001 17:06:00 GMT." Date: Mon, 22 Jan 2001 19:43:19 +0200 From: Mark Murray Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > This is a trivial question, but I get hung up on details, so I'm gonna ask > anyway. ;) OOOOOPPPPPPENNN Bikeshed! ;-) > 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? > > if (0 == i) > { > foo(i); > bar(i); > } IMHO, this wastes one line of screen space. I only use it for functions. > versus > > if (0 == i) { > foo(i); > bar(i); > } "Classic" K&R. Allows a little more code per screen. M -- Mark Murray Warning: this .sig is umop ap!sdn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message