[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Boolean matters
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 4 Dec 2012 14:59:29 +0200
On Tue, Dec 4, 2012 at 2:40 PM, spir <denis.spir@gmail.com> wrote:
> One more point for genuine bools ;-) (hum...)
One of my most common errors is to say 'if foo then ... end' when I
_really_ mean 'if foo==nil then .. end'.
Kind people then write to me to ask why I am so prejudiced against
genuine false values.
But still, just because it's a common sloppy mistake, does not mean
that the language itself must make it impossible to be sloppy.
steve d.