logoalt Hacker News

madeofpalk • 11/08/2024 • 1 reply • view 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

ziml77 • 11/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