3 ms·
As it should be! Shame they didn't make the error type a sum type that forced you to check it isn't an error. I prefer that to exceptions. But the product type
by nejsjsjsbsb 2y ago
As it should be! Shame they didn't make the error type a sum type that forced you to check it isn't an error. I prefer that to exceptions. But the product type that Go uses is ok.
- guappa 2y ago70% of any code is handling errors. It's awful (and by handling I mean just passing them to the calling function). And no exceptions make it really easy to ignore errors instead. Which is much worse.