Steve Holden wrote: [was Python-list digest, Vol 1 #10572 - 14 msgs]

Michael Gilfix mgilfix at eecs.tufts.edu
Sat Apr 27 13:09:42 EDT 2002


  I disagree entirely. When writing production code, you want to model
the thought process that goes into creating the code as clearly if
possible.  If in your head you're thinking "if 'x' is equal to 0",
then you probably want to write it that way. While writing 0==x is
a better move in C, it's entirely against intuition and the natural
thought process.

  Python is smart to avoid such assignments...

               -- Mike

On Sat, Apr 27 @ 19:10, Roman Neuhauser wrote:
>     Anyone who writes "if (x == 0)" instead of "if (0 == x)" deserves
>     what he begs for.

-- 
Michael Gilfix
mgilfix at eecs.tufts.edu

For my gpg public key:
http://www.eecs.tufts.edu/~mgilfix/contact.html





More information about the Python-list mailing list