[Python-Dev] Re: Trinary Operators
Gerald S. Williams
gsw@agere.com
Thu, 6 Feb 2003 14:44:47 -0500
Guido van Rossum wrote:
> > Guido> x = (y if y>z else z)
> Maybe I should write a PEP and let the folks in c.l.py vote on it,
> just for fun. (I expect to get about as many yes votes as no votes. :-)
As long as you wait until April 1 (that's an odd day).
I'm an even-day fan of trinary operators myself, but
this opens too many questions. For example, with
regard to short-circuiting, it will be inconsistent
with other expressions at some level in either form
or function.
-Jerry