For review: PEP 308 - If-then-else expression
Michele Simionato
mis6 at pitt.edu
Sat Feb 8 18:46:46 EST 2003
Erik Max Francis <max at alcyone.com> wrote in message news:<3E45435E.FD37D8BB at alcyone.com>...
> The
> replacement if `if' with `when' does indeed address this concern, but it
> does seem rather a secondary objection, since the use of `if' is already
> overloaded, e.g., in list comprehensions. (So instead of it polluting
> our precious `if', there's already precedent.)
It is EXACTLY because "if" is already overloaded that I don't want to
overload it even more! Anyway, (if c then e1 else e2), is better than
nothing and better than Guido's proposal.
M.
More information about the Python-list
mailing list