for / while else doesn't make sense

Marko Rauhamaa marko at pacujo.net
Sat May 21 02:03:28 EDT 2016


theherk at gmail.com:

> You seem to have missed the point. Nobody is suggesting, I don't
> believe, that all of a language should be intuitive. Rather that if
> any part of it is unnecessarily counter-intuitive, it may be worth
> looking for a better solution. Python is a very well designed language
> when it comes to in linguistic presentation. In this case however, it
> is not only unintuitive but counter-intuitive.

The for-else construct is a highly practical feature. It is in no way
inherently counter-intuitive. As any new thing, it needs to be learned
and used to be appreciated.


Marko



More information about the Python-list mailing list