Go to Google Groups Home    comp.lang.python
Re: 0 == False but [] != False?

Erik Max Francis <m...@alcyone.com>

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 && m...@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