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.
This also grinds my gears when converting multiple-return functions to returns-a-channel functions. Generics help with that now.
This also grinds my gears when converting multiple-return functions to returns-a-channel functions. Generics help with that now.