Live data from Hacker News

Why I Prefer Exceptions to Error Values

cedardb.com

21–22 of 22 posts

Re: Why I Prefer Exceptions to Error Values

#21

I think exceptions are bad not because of the principle but because code is written by humans. We use Go in our company and every intern learning it complains about the error handling at first. Then they write a bunch of programs and those basically never crash. I had and intern write a somewhat complex service mangling large amounts of Geodata which was his first go service ever. That thing ran for years without cra…

That makes me think about reading djb's c code. He zealously checks return values. Even from printf.

Re: Why I Prefer Exceptions to Error Values

#22
post #17

Earlier quoted context omitted.

The article's title is "Why I Prefer Exceptions to Error Values". It literally tells you that it's biased.

You can hold a preference yet remain unbias. It’s biased because the author failed to acknowledge any of the conflicting test examples

A preference is just a bias with a more positive connotation.

The author acknowledges their bias in the title.

Post reply on HN