Guido van Rossum wrote:

> I sometimes think it was
> a mistake to introduce elif just to save typing "else if".
> 
> The problem with the elwhile/elfor/eltry idea 
 > is that you're just as likely to need e.g.
> a "try" in the else clause of a while-loop as another while,

Here's an idea for Python 3000 which addresses both of
these: Split 'elif' back up into 'else if', but also
generalise it so that any 'else' can be followed by any
suite-introducing statement. Then you get all possible
combinations for free.

Greg

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to