154
you are viewing a single comment's thread
view the rest of the comments
[-] tunetardis@lemmy.ca 4 points 1 day ago

I suppose it depends on the language? For the most part I think you're right. Exceptions are only used (if at all) in situations where a program diverges unexpectedly from its normal flow. But take a language like Python. They're just everywhere. Even your plain old for loop ends on an exception, and that's just business as usual.

this post was submitted on 13 Nov 2024
154 points (98.1% liked)

Programmer Humor

32464 readers
418 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS