For review: PEP 308 - If-then-else expression
Geoff Gerrietts
geoff at gerrietts.net
Fri Feb 7 14:16:14 EST 2003
Maybe it's been suggested before, and it's not popular for some
reason, but I think conceiving this as an operator might be the wrong
direction to go -- we go there because C did, not because it's right.
What about ifelse(condition, then clause[, else clause])? I've seen
structures like that in several languages; it seems to answer the need
without adding new syntax.
--G.
--
Geoff Gerrietts <geoff at gerrietts dot net>
-rw-rw-rw-: permissions of the beast
More information about the Python-list
mailing list