3 ms·
IMHO, the actual problem with go error handling isn’t the error handling at all — it’s that multiple return values aren’t a first class construct. With proper t
by abtinf 1y ago
IMHO, the actual problem with go error handling isn’t the error handling at all — it’s that multiple return values aren’t a first class construct. With proper tuple handling and Go’s approach to generics, a lot of these issues would just disappear.
- JamesSwift 1y agoThis also grinds my gears when converting multiple-return functions to returns-a-channel functions. Generics help with that now.