Better HN
topnewbestaskshowjobs
Log inSign up

jtohasdfasd

1 karma · joined May 22, 2024 (2y ago) · 1 submissions

Submissions

comment 2y ago · link · parent

What I see wrong with Go's error handling is that the error type is an open set which welcomes you with a Pandora's box full of infinite possible error values.

This is much too burdensome for me to cognitively bear so I prefer a closed set model as seen in Zig, Rust, or any ML.

I don't recall if Swift has exhaustive error handling.