Date: Tue, 23 Jan 2001 12:28:23 +0200 From: Stanislav Grozev <sgrozev@orbitel.bg> To: Stephen McKay <mckay@thehub.com.au> Cc: freebsd-chat@freebsd.org Subject: Re: silly C style question Message-ID: <20010123122823.B26056@thing.orbitel.bg> In-Reply-To: <200101231023.f0NANZI18506@dungeon.home>; from mckay@thehub.com.au on Tue, Jan 23, 2001 at 08:23:35PM %2B1000 References: <20010122170600.D4456@dogma.freebsd-uk.eu.org> <200101231023.f0NANZI18506@dungeon.home>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Tue, Jan 23, 2001 at 08:23:35PM +1000, Stephen McKay wrote:
> >if (0 == i) {
> > foo(i);
> > bar(i);
> >}
>
> Use neither of these! Use:
>
> if (i == 0)
> {
> foo(i);
> bar(i);
> }
>
> You Know It Makes Sense(tm).
please elaborate how your solution makes sense? because I am obviously dumb,
as I can't seem to recognize the reasoning behind it.;-))
(as a side note, my personal preference is that the opening bracket should
be on the same line as the decision statement, but that's irrelevant
for now;-)
--
Regards,
Mr. Stanislav Grozev
Senior Systems Developer, Orbitel Inc.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE6bVzH3KS+A0T8MzkRAmZdAJ96G1bt0OCh5CgyWfwxuiP9IYbxmACfQthW
M/DeY4b4NzuhkYNdb03YouQ=
=bB9z
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010123122823.B26056>
