Date: Mon, 22 Jan 2001 17:06:00 +0000 From: j mckitrick <jcm@FreeBSD-uk.eu.org> To: freebsd-chat@freebsd.org Subject: silly C style question Message-ID: <20010122170600.D4456@dogma.freebsd-uk.eu.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010122170600.D4456>