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

Andrew Koenig ark at research.att.com
Fri Feb 7 23:06:08 EST 2003


Mike> While I don't object to the idea of a ternary operator per se, I
Mike> find this one objectionable. The problem is that it does magic,
Mike> but you don't know that until you've read the first
Mike> expression. I think that results in an overall lowering of the
Mike> readability of the code.

That's why my opinion is +0.8 instead of +1.

I think it would be great if someone came up with an obviously
better syntax, but I'd greatly prefer the present proposal to nothing.


-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list