logoalt Hacker News

zephentoday at 3:11 AM0 repliesview on HN

The point is that the use of exceptions is built into the language, so, for example, if you write "for something in somegeneratorfunction():" then somegeneratorfunction will signal to the for loop that it is finished by raising this exception.