0 == False but [] != False?
Erik Max Francis
max at alcyone.com
Thu May 24 19:39:31 EDT 2007
Steve Holden wrote:
> Dan Bishop wrote:
>
>> I have a job as a C++ programmer, and they make us write it like that,
>> apparently because the ! operator is hard to see. But "if (x ==
>> TRUE)" is discouraged.
>>
> Find a new employer. I'm not joking.
Really. He's not. That's a perfect example of a style guideline that
not only wastes energy, misses the point, but is totally wrong.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM, Y!M erikmaxfrancis
There is another world, which is not of men.
-- Li Bai
More information about the Python-list
mailing list