PEP308: Yet another syntax proposal
James J. Besemer
jb at cascade-sys.com
Mon Feb 10 18:17:59 EST 2003
sismex01 at hebmex.com wrote:
> My question is "why leave it half-done?"
>
> Why create a simple builtin function which doesn't do
> short circuiting and then resort to half-baked hacks
> when you do need it, when here's the chance to do it
> fully and have a sanctioned short-circuiting ternary
> operator, usable in all the cases the builtin would
> work, and then some.
Exactly.
Specious arguments that short-circuiting is not needed or seldom needed are
thinly disguised restatements that cond-if is not needed.
Regards
--jb
--
James J. Besemer 503-280-0838 voice
2727 NE Skidmore St. 503-280-0375 fax
Portland, Oregon 97211-6557 mailto:jb at cascade-sys.com
http://cascade-sys.com
More information about the Python-list
mailing list