Skip site navigation (1)Skip section navigation (2)
Date:      24 Feb 2001 14:26:26 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Rahul Siddharthan <rsidd@physics.iisc.ernet.in>
Cc:        "Michael C . Wu" <keichii@peorth.iteration.net>, j mckitrick <jcm@FreeBSD-uk.eu.org>, freebsd-chat@FreeBSD.ORG
Subject:   Re: bad programming practice?
Message-ID:  <xzp7l2gnrel.fsf@flood.ping.uio.no>
In-Reply-To: Rahul Siddharthan's message of "Sat, 24 Feb 2001 08:40:58 %2B0100"
References:  <20010223180321.A33329@dogma.freebsd-uk.eu.org> <20010223143019.E32113@peorth.iteration.net> <20010224084058.A50136@lpt.ens.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Rahul Siddharthan <rsidd@physics.iisc.ernet.in> writes:
> Think of it this way: any normal person would tend to write "if
> (n==1)".  Now, to get around using = accidentally for ==, you either
> have to train yourself to write "if (1==n)" consistently every time,
> or you train yourself to check that == every time you write such an
> expression.  Why not just train yourself to check the ==?

Why not just train yourself to always compile with -Wall -pedantic?

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

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?xzp7l2gnrel.fsf>