this post was submitted on 13 Dec 2025
276 points (97.9% liked)
Programmer Humor
39547 readers
19 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You could do a lot worse. If the type of
iwas an object, you could overload the negation operation to have side-effects for the third snippet, for example.