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
--8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 23, 2001 at 08:23:35PM +1000, Stephen McKay wrote: > >if (0 =3D=3D i) { > > foo(i); > > bar(i); > >} >=20 > Use neither of these! Use: >=20 > if (i =3D=3D 0) > { > foo(i); > bar(i); > } >=20 > 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;-) --=20 Regards, Mr. Stanislav Grozev Senior Systems Developer, Orbitel Inc. --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----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----- --8t9RHnE3ZwKMSgU+-- 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?20010123122823.B26056>