logoalt Hacker News

madeofpalk11/08/20241 replyview on HN

go’s error handling patterns, while lacking every established feature that makes it ergonomic, is baffling.

Embarrassing that developers are still forgetting nil pointer checks in 2024.


Replies

ziml7711/08/2024

The error handling is one of the worst parts of Go for me. Every call that can fail ends up being followed by 3 lines of error handling even if it's just propagating the error up. The actual logic get drowned out.

show 1 reply