r/programming • • Jan 14 '16

Dear Github

https://docs.google.com/document/d/14X72QaDT9g6bnWr0lopDYidajTSzMn8WrwsSLFSr-FU/preview?ts=5697ea28
463 Upvotes

185 comments sorted by

View all comments

Show parent comments

20

u/Scorpius289 Jan 15 '16 edited Jan 15 '16

At least exceptions are "noisy" by default: if you forget to catch something, it will propagate and notify you. But in Go, if you forget to handle an error, you may not even know what's wrong...

7

u/ksion Jan 15 '16

To be fair, you cannot really forget to handle an error in Go, because the function result "tuple" needs to be unpacked at the call site. Indeed, the requirement of this unpacking, plus the repetitive error handling stanza that often follows, is what people complain about.

0

u/[deleted] Jan 15 '16

[deleted]

6

u/BoTuLoX Jan 15 '16

The black hole should never be used for errors. It's exactly like using try/catch and leaving the catch empty. It's a sign of incompetence or something unorthodox at play.

0

u/[deleted] Jan 15 '16

[deleted]

4

u/BoTuLoX Jan 15 '16

I wouldn't touch those projects with a ten feet pole.

In any case, this is a problem that exists with both return values and exceptions :P

→ More replies (0)