Voting for PEP 308 (was Re: For review: PEP 308
Voting for PEP 308 (was Re: For review: PEP 308 - If-then-els e expression)
sismex01 at hebmex.com sismex01 at hebmex.comTue Feb 11 12:47:01 EST 2003
- Previous message (by thread): Voting for PEP 308
- Next message (by thread): Voting for PEP 308 (was Re: For review: PEP 308 - If-then-else expression)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> From: Hans Nowak [mailto:wurmy at earthlink.net] > Sent: Tuesday, February 11, 2003 11:34 AM > > 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 :-) > Hmmm... I like this, except that it doesn't short- circuit evaluation. :-/ too bad. -gustavo
- Previous message (by thread): Voting for PEP 308
- Next message (by thread): Voting for PEP 308 (was Re: For review: PEP 308 - If-then-else expression)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list