PEP 308: ternary operator
phil hunt
philh at cabalamat.uklinux.net
Sat Feb 22 07:56:56 EST 2003
On Sat, 22 Feb 2003 06:21:57 GMT, Terry Hancock <hancock at anansispaceworks.com> wrote:
>phil hunt wrote:
>> On Fri, 21 Feb 2003 17:10:55 GMT, Carl Banks
>>>I think it's kind of comical how serious everyone believes this is, as
>>>if the very future existence of Python hinged on whether the
>>>conditional operator is a ? b : c or a then b else c.
>>
>> Well said.
>
>So why are *you* so serious about using the C syntax?
There are other syntaxes that I'd be happy with, e.g:
result = (if c then a else b)
But I reject the argument "if it's C it's bad".
--
|*| Philip Hunt <philh at cabalamat.uklinux.net> |*|
|*| "Memes are a hoax; pass it on" |*|
More information about the Python-list
mailing list