Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This just shows that, to avoid having do-and-check after every operation, the provider needs to invent several idioms because it's tedious to the consumer.

But now the consumer needs to know multiple idioms and recognise when they are being used. And the reader of the consumer code needs to know that the normal `err != nil` idiom is not being followed. All of which requires everyone involved to do more reading of source code than a "throws" line.

How is this simpler than having a single, universal concept of exception handling?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: