this post was submitted on 17 Jan 2025
365 points (99.2% liked)

Programmer Humor

33167 readers
433 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
[–] intensely_human@lemm.ee -1 points 2 weeks ago (3 children)

So catching errors and doing nothing? That exists in every language except maybe BASIC?

[–] HK65@sopuli.xyz 5 points 2 weeks ago

Catching individual errors is fine. Having all errors be ignored by default is weird.

[–] locuester@lemmy.zip 2 points 2 weeks ago

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.

Ignoring every exception, including divisions by zero, is something I've never seen outside of BASIC and shell scripting. Even C and assembly will shit themselves when you do some of the shit that ON ERROR RESUME NEXT will ignore.