3 ms·
Rust's error handling really made me fall for the language but there are a couple of pain points for me. As others have pointed out the inability to use the `?`
by tmpfs 6y ago
Rust's error handling really made me fall for the language but there are a couple of pain points for me. As others have pointed out the inability to use the `?` operator when a function does not return `Result`, it looks like solutions are in the works for this. But the one i have not been able to figure out is handling errors neatly at async boundaries, ie, when calling sync code that returns `Result` inside a `TryFuture` - is there a pattern for this?