PEP-308 a "simplicity-first" alternative
Erik Max Francis
max at alcyone.com
Wed Feb 12 02:52:34 EST 2003
holger krekel wrote:
> But after using it a couple of times it reduces the amount of
> thinking considerably compared to "x and y or z".
After you're used to it, any idiom is understandable. The issue is
whether it's incomprehensible idiom to begin with. In that respect, `C
and x else y' is no less idiomatic than `C and x or y' (despite the
fact, of course, that `C and x else y' has the possibility of _working_
when x is false).
"Oh, you'll get used to it by repetition" doesn't seem to be a very
strong argument in favor of a particular syntax.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ When you love somebody, you're always in trouble.
\__/ Col. Sherman Potter
ZOE / http://www.alcyone.com/pyos/zoe/
A simple Python OpenGL rendering engine.
More information about the Python-list
mailing list