3 ms·
That's one take on it, but these error types are vastly more lightweight than exceptions when the code isn't hitting the happy path (and there's little differen
by mixedCase 10y ago
That's one take on it, but these error types are vastly more lightweight than exceptions when the code isn't hitting the happy path (and there's little difference when it isn't).
Plus, when I write Java I have to constantly specify new Exception types. I don't see anything wrong with having to do it for Go when I really want more or less data depending on circumstance.