News for hackers. Stuff that matters.
Re:On the uses and misuses of panics in Go by munificent on Thursday August 09, 2018 @05:01PM (#17728472)
Denial. Exceptions are bad and no one needs them.

Anger. Ugh, we've got manual error-handling code everywhere. It's awful!

Bargaining. What if we just add a couple of really limited features to handle really exceptional errors...

Depression. Oh, God, now we have all of the trouble of exceptions along with our previous weird half-baked error-handling mechanism.

Acceptance. Well, we've got too many users, so now we're stuck with it. At least people seem to be able to muddle through anyway.

There are no comments on this comment yet.