For review: PEP 308 - If-then-else expression

Aahz aahz at
Sun Feb 9 00:04:20 CET 2003

In article <yu99wuka8z9t.fsf at>,
Andrew Koenig  <ark at> wrote:
>>Andrew Koenig:
>>> One reason is that Perl has several categories of variables, and you
>>> have to state the category each time you utter the name of a variable.
>>> This categorization makes it much more difficult to create useful
>>> data structures than it would be otherwise.
>Aahz> False.  You can use references to mask that issue.  TMTOWTDI.
>I understand that circumlocutions are available.  But they're
>circumlocutions.  The fact remains that the type system lacks
>orthogonality.  You need an extra level of indirection to give it
>the appearance of orthogonality.

>From my POV, usable orthogonality is related to simplicity.  Adding a
ternary operator reduces Python's simplicity, and therefore a certain
amount of orthogonality.  Listcomps fit "practicality beats purity", but
I just don't see that *in* *the* *aggregate* for ternaries.
Aahz (aahz at           <*>

Register for PyCon now!

More information about the Python-list mailing list