From owner-freebsd-chat Mon Jan 22 9: 6:24 2001 Delivered-To: freebsd-chat@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id EF43C37B69B for ; Mon, 22 Jan 2001 09:06:06 -0800 (PST) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by probity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 14KkPs-000Bnk-00 for freebsd-chat@freebsd.org; Mon, 22 Jan 2001 17:06:04 +0000 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.1/8.11.1) id f0MH60U04914 for freebsd-chat@freebsd.org; Mon, 22 Jan 2001 17:06:00 GMT (envelope-from jcm) Date: Mon, 22 Jan 2001 17:06:00 +0000 From: j mckitrick To: freebsd-chat@freebsd.org Subject: silly C style question Message-ID: <20010122170600.D4456@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i 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. ;) 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); } versus if (0 == i) { foo(i); bar(i); } jcm -- o-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-o | ~~~~~~~~~~~~ Jonathon McKitrick ~~~~~~~~~~~~~ | | "I prefer the term 'Artificial Person' myself." | o-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-o To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message