News for hackers. Stuff that matters.
Re:Warming up to Go by jacques_chester on Saturday September 12, 2015 @12:55PM (#10208554)
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?

There are no comments on this comment yet.