if (error) {
continue;
}
this post was submitted on 17 Jan 2025
245 points (98.0% liked)
Programmer Humor
19969 readers
1666 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
try {
operation();
} catch {
// nice weather, eh?
}
Starting with Java 21 (I think), they've introduced ignored variables, so you can now actually do this:
try {
operation();
} catch (Exception _) {
// nice weather, eh?
}
If I can't see it, is it really there?
If it works, it works
This is why:
"It ain't stupid if it works."
is fundamentally incorrect.
I would add: until it doesn't.
-ErrorActionPreference SilentlyContinue