Hacker News new | ask | show | jobs
by fyi1183 2949 days ago
The way I remember it is that it makes sense in loops that search for something in an iterable. Such loops break when they're successful, and so it makes sense for the code in the else clause to run when the loop was unsuccessful.