For review: PEP 308 - If-then-else expression
aahz at pythoncraft.com
Sun Feb 9 00:04:20 CET 2003
In article <yu99wuka8z9t.fsf at europa.research.att.com>,
Andrew Koenig <ark at research.att.com> wrote:
>>> 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 pythoncraft.com) <*> http://www.pythoncraft.com/
Register for PyCon now! http://www.python.org/pycon/reg.html
More information about the Python-list