Code basics

Jeff Pinyan jeffp at crusoe.net
Fri Mar 17 19:53:17 CET 2000


On Mar 17, Alex said:

>FWIW, I don't like it, myself.  It relies on the fact that the
>comparison returns 0 or 1 for true or false, resp.  Because that's
>relatively obscure, and unrelated to what the code is trying to do, it
>meant the intent of the code wasn't immediately obvious.

Why should the return value of a logic test be "obscure" knowledge?  Why
"hide" something so basic?

-- 
MIDN 4/C PINYAN, NROTCURPI, US Naval Reserve             japhy at pobox.com
http://www.pobox.com/~japhy/                  http://pinyaj.stu.rpi.edu/
PerlMonth - An Online Perl Magazine            http://www.perlmonth.com/
The Perl Archive - Articles, Forums, etc.    http://www.perlarchive.com/




More information about the Python-list mailing list