this post was submitted on 17 Jan 2025
385 points (99.2% liked)
Programmer Humor
33584 readers
18 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 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Still not as excellent as
On Error Resume Next
Imagine the sheer ~~idiocy~~ genius required to add a language feature where, if an error occurred, the handling method is to just pretend that line of code never existed and continue onto the next line.
VBA is truly the language of savants.
PowerShell does that by default, and it's my least favorite feature in my most used language.
$ErrorActionPreference = Stop
At the start of almost every script.
set -e
So catching errors and doing nothing? That exists in every language except maybe BASIC?
Catching individual errors is fine. Having all errors be ignored by default is weird.
Very different. This means default ignore all errors and continue to the next line. You’d have to explicitly catch every line in most(all?) other languages.
[This comment has been deleted by an automated system]