Inspiration and influence of the else clause of loop statements in Python?
- by Aristide
Python offers an optional else clause in loop statements, which is executed if and only if the loop is not terminated by a break. For an interesting discussion about this neglected commodity, see this question. Here, I just wanted to know:
if the very concept of this loop-else construct originates from another language (either theoretical or actually implemented),
conversely, if it was taken up in any newer language.
May be I should ask the former to Guido, but he surely is a too busy guy for such a futile inquiry. ;-)