7 ms·
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.
by jtohasdfasd 2y ago
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.