Hacker News new | ask | show | jobs
by tptacek 1760 days ago
Error handling in Rust isn't always small or straightforward. I miss both options and match expressions when I switch back to Go from Rust, but there's also tangles of or_else's and maps and the fact that everyone uses third-party libraries to work out the types for errors. There's tradeoffs everywhere you look.
1 comments

Zig is probably a better comparison for this:

https://ziglang.org/documentation/master/#Errors