On 21 Jul 2020, at 18:47, Rob Cliffe via Python-ideas <firstname.lastname@example.org> wrote:
This is a continuation of my previous post to this
Python's FOR ... ELSE ... , Raymond Hettinger has told
us, has origins in some ideas of Don Knuth.
That’s news to me (both that it’s due to Knuth
and that Raymond said so). I invented it without awareness of
prior art, by reasoning about the similarity between IF and
WHILE (FOR followed from WHILE).
On 20/07/2020 15:42, Guido van Rossum
Also, let me be clear that this feature will
never be added to the language.
With respect, that seems pretty dogmatic, given that for...else is
one of the most confusing features of Python.
What would be so terrible about allowing, at minimum, `if not
break:' as a synonym for 'else:'?
1. Because that not what else mean today. Its elif never looped.
2. Because if after for is confusing. I can get behind elif as after for it pull work.
Python-ideas mailing list -- email@example.com
To unsubscribe send an email to firstname.lastname@example.org
Message archived at https://email@example.com/message/4H5SMUSIHBOWJUIAS7WO2BHEHJ5WYQKA/
Code of Conduct: http://python.org/psf/codeofconduct/