PEP-308 a "simplicity-first" alternative
Greg Ewing (using news.cis.dfn.de)
me at privacy.net
Thu Feb 13 20:27:16 EST 2003
holger krekel wrote:
> Sorry, peter, but this sounds rather formal. Do you really think
> it's that great a "feature" that you have to switch to another idiom
> if your ternary becomes binary?
When we're talking about a conditional expression rather than a
conditional statement, it's never truly binary. The expression
always has *some* value. I tend to agree that both alternatives
should always be made explicit.
--
Greg Ewing, Computer Science Dept,
University of Canterbury,
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list