From owner-freebsd-chat Tue Jan 23 2:28:53 2001 Delivered-To: freebsd-chat@freebsd.org Received: from thing.orbitel.bg (thing.orbitel.bg [195.24.32.46]) by hub.freebsd.org (Postfix) with SMTP id 9681637B698 for ; Tue, 23 Jan 2001 02:28:31 -0800 (PST) Received: (qmail 26136 invoked by uid 1001); 23 Jan 2001 10:28:23 -0000 Date: Tue, 23 Jan 2001 12:28:23 +0200 From: Stanislav Grozev To: Stephen McKay Cc: freebsd-chat@freebsd.org Subject: Re: silly C style question Message-ID: <20010123122823.B26056@thing.orbitel.bg> References: <20010122170600.D4456@dogma.freebsd-uk.eu.org> <200101231023.f0NANZI18506@dungeon.home> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200101231023.f0NANZI18506@dungeon.home>; from mckay@thehub.com.au on Tue, Jan 23, 2001 at 08:23:35PM +1000 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --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