some data on the debate [Python-Dev] Update to PEP308: if-then-else expression
Raymond Hettinger
python@rcn.com
Tue, 11 Feb 2003 15:33:07 -0500
[Aahz]
> That would be difficult, given that there are now two leading
> contenders (if <cond>: x else: y vs. <cond> ?? x || y). Given that both
> have only emerged in the last day or so, there's been no time to
> evaluate which is ahead.
Hmm, one looks like Smalltalk and the other like Perl ;)
Though both are clear and get the job done, the first bugs
me for three reasons:
* you have to look twice to see that you're dealing
with a statement rather than an expression
* when looking at an expression, my mind is trained
to see alpha characters as a variable or function name
* the enclosing parenthesis requirement feels wrong
> I propose to let the discussion simmer another
> week or so before voting.
Excellent plan.
Raymond Hettinger