From owner-freebsd-chat Fri Feb 23 15:34: 9 2001 Delivered-To: freebsd-chat@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 426FA37B491 for ; Fri, 23 Feb 2001 15:34:06 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id f1NNKnY32017; Fri, 23 Feb 2001 15:20:49 -0800 Date: Fri, 23 Feb 2001 15:20:49 -0800 From: Brooks Davis To: "Michael C . Wu" Cc: j mckitrick , freebsd-chat@FreeBSD.ORG Subject: Re: bad programming practice? Message-ID: <20010223152049.A31038@Odin.AC.HMC.Edu> References: <20010223180321.A33329@dogma.freebsd-uk.eu.org> <20010223143019.E32113@peorth.iteration.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010223143019.E32113@peorth.iteration.net>; from keichii@iteration.net on Fri, Feb 23, 2001 at 02:30:20PM -0600 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2001 at 02:30:20PM -0600, Michael C . Wu wrote: > Personally, I think most C/C++ programmers eventually learn to always > watch for =3D=3D vs. =3D mistakes right when they type the boolean expres= sion. > Hence, the trick becomes useless as one advances. There's also the fact that GCC and other compilers with even vaguly decent warnings complain about this mistake if you turn warnings on. I think it's probably not bad practice in a corprate environment where you can enforce a style, but it's probably unnecessicary with decent tools. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6lvBQXY6L6fI4GtQRAmLyAJ9YrhYOWzTrsshr+v1UVy0q4YaLIwCfVCYz Bm4wCep2kz6JHa2YpD6k/8U= =qGwJ -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message