News for hackers. Stuff that matters.
Re:Why I love Go by TheDong on Tuesday December 05, 2017 @08:27PM (#15857782)
Exceptions are a strawman.

I don't like exceptions. Go's error handling is still ridiculous.

It doesn't have sum-types, it has the incredibly stupid interface/struct nil punning so you must return an interface and type-assert down, it doesn't have a tuple object being returned but actually multiple return which is a semi-broken thing, it doesn't have an either/result type or an optional type to express mutual-exclusivity / optionality....

Yeah, the whole thing is disgustingly bad. That doesn't mean I prefer exceptions.

I do prefer meticulous "errors as value" error handling. Go's implementation is the worst implementation of that because the type system doesn't support various features that make handling error values better.

There are no comments on this comment yet.