I am new to python. I have a few questions coming from an armature!
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Wed Aug 17 19:02:45 EDT 2016
On Thursday, August 18, 2016 at 6:28:06 AM UTC+12, Terry Reedy wrote:
>
>> Why couldn’t they have adopted the standard C
>> syntax, as used in a whole bunch of other C-derivative languages?
>> cond ? trueval : falseval
>
> That particular syntax was not really considered. At least 10 versions
> using 'if', 'then', 'else', and other tokens were.
>
> They all had the problem of requiring a new keyword such as 'then' or
> some other innovation.
What was wrong with adopting the C syntax? That would have introduced “?” as a new symbol. What impact what that have had on existing Python code? None that I can think of.
More information about the Python-list
mailing list