PEP 308: an additional "select/case" survey option

Terry Reedy tjreedy at udel.edu
Wed Mar 5 09:38:21 EST 2003


"Clark C. Evans" <cce at clarkevans.com> wrote in message
news:mailman.1046831591.22639.python-list at python.org...
>    To those who hate the terinary operator beacuse it isn't
pythonic...

It is ternary, not terinary.  If you are going to trash something I
like with name-calling opinions masqueraded as fact, please at least
spell it right.  But I guess you do not want me to read your proposal.

[snip]

>   In particular, this proposal rejects the rationale for 'terinary'

ternary

>   operator as a way to trade horizontal screen realestate for
>   vertical space; as this rationale is in direct opposition to
>   the fundamental principle of readability.

How does 'C op1 b op2 c', when performing a conditional selection
operation, violate the 'fundamental principle of readibility',
whatever that is, any more than any other five-token expression, such
as 'a + b * c' or 'a <= b <= c'?

Terry J. Reedy






More information about the Python-list mailing list