logoalt Hacker News

DangitBobbylast Wednesday at 3:00 PM0 repliesview on HN

No. Exceptions means the default is to bubble up. You can always write special handling code to prevent bubbling it up if you want in a language with exceptions.

So it's:

Rely on the programmer to identify that an error was made and in 95% of situations just bubble it up, do something useful 5% of the time, but "deal with" the error 100% of the time OR

Rely on the programmer to identify the 5% of situations where they don't want the error to just bubble up and add special handling for that case specifically.