Voting for PEP 308

Dan Schmidt dfan at dfan.org
Tue Feb 11 13:59:42 EST 2003


Hans Nowak <wurmy at earthlink.net> writes:

| Hmm, what if bools grew an if() method?  We could then write:
|
|    z = (x == y).if(whentrue, whenfalse)
|
| This strikes me as much more elegant than the other proposals.
|
| (ducking for cover, etc :-)

You joke, but that's basically what Smalltalk does.

Dan

-- 
http://www.dfan.org




More information about the Python-list mailing list