Skip to content

Comment on Exceptions (2003)parent

Comments

> You feel confident that you have already handled all the error cases (that you care about) in your code.

What about the errors you don't care about at the time, but realize later than you should care about? Do you go back and add them? This process seems error prone to me.

From the Go FAQ "[Excpetions] also tends to encourage programmers to label too many ordinary errors, such as failing to open a file, as exceptional."

So the problem is not with exceptions, but how some programmers use them.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.