this post was submitted on 12 May 2024
518 points (97.1% liked)

Programmer Humor

32048 readers
1447 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
[–] [email protected] 2 points 4 months ago (1 children)

cant practically anything throw an exception given the right (sometimes extremely remotely possible) circumstances?

[–] [email protected] 5 points 4 months ago (1 children)

Not really. Exceptions are a controlled way of indicating something went wrong in an application.

The only point where you wouldn't know about the possibility of one is when you don't know enough about the language features you're using or when you use a badly documented library or framework.

[–] [email protected] 2 points 4 months ago

dont many of the language primitives confer the possibility of thrown exceptions?