logoalt Hacker News

abtinflast Tuesday at 5:27 PM1 replyview on HN

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.


Replies

JamesSwiftlast Tuesday at 5:30 PM

This also grinds my gears when converting multiple-return functions to returns-a-channel functions. Generics help with that now.