Rust's explicitness and being forced to handle every case is so incredibly frustrating but also feels so right.
Thanks for posting this. I'm still trying to figure out the best technique to error handling in my programs. I just learned about anyhow the other day and kind of starting to work that in.
I'm so tired of having to reshape errors with match statements.
let result = match foo(a, b) {
Ok(r) => r,
Err(err) => {
return Err(MyErrorEnum::Error(err.to_string()));
}
};
This pattern is an annoying habit I keep finding myself repeating.