3 ms·
> I personally really dislike the degree to which rust and zig force the programmer to worry about error handling. The way I see it, things should not error, if
by axiosgunnar 5y ago
> I personally really dislike the degree to which rust and zig force the programmer to worry about error handling. The way I see it, things should not error, if they do, stop everything and print a stack trace, please don't bother me with it.
Then just .unwrap() everything?
- deleted 5y ago[deleted]
- unrealhoang 5y agoOr use `anyhow` and `?` everything.
- agubelu 5y agoPersonally, I really like error handling in Rust. It makes me think about handling deviations from the happy path much more than exceptions ever did. As you said, you can choose to .unwrap() everything and that's fine if it's what you want, but it forces you to make a conscious decision. I like that explicitness.