this post was submitted on 08 Jul 2023
143 points (100.0% liked)

Programmer Humor

32464 readers
657 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] mcherm@lemmy.world 15 points 1 year ago (1 children)

It really needs a fourth block that just says "Python".

(For those who don't get the joke, in Python the way that one exits a loop over an iterator is to keep going until the iterator throws an exception. It sounds dumb at first, but in truth, that's only if you think that exceptions are incredibly heavyweight compared to other operations.)