PEP308: Yet another syntax proposal
Aahz
aahz at pythoncraft.com
Mon Feb 10 21:05:19 EST 2003
In article <3E485117.9FBD47 at alcyone.com>,
Erik Max Francis <max at alcyone.com> wrote:
>Aahz wrote:
>> In article <YUP1a.3080$SB2.242 at nwrddc03.gnilink.net>,
>> Raymond Hettinger <python at rcn.com> wrote:
>>>
>>> cond ?? val1 || val2
>>
>> +0.5
>
>Why would this be better than the form (suggested in the PEP) of
>
> cond ? val1 ! val2
>
>(which Guido expressed displeasure over but did not reject out of hand)?
Because the extra punctuation calls out more clearly, IMO. Also, I like
the "||" meaning "or".
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Register for PyCon now! http://www.python.org/pycon/reg.html
More information about the Python-list
mailing list