[sclug] sclug Digest, Vol 72, Issue 14
Neil Haughton
haughtonomous at googlemail.com
Fri Sep 25 14:02:47 UTC 2009
> As for the "== false" bit: that rather depends on the language.
> If the only possible values are true and false then I'd prefer
> "!" but if there's any chance of another value then an explicit
> test for false seems like a good idea to me, not depending on
> the other value being interpreted as true.
>
The code was (horror! :-) ) C#, where the only possible values for the
condition are 'true' and 'false'.
Neil.
More information about the Sclug
mailing list