3 ms·
While dealing with errors in any langauge is irritating, I think Rust has the best ideas. * Pattern-matching for success/error check * Error passing with the
by timw4mail 7y ago
While dealing with errors in any langauge is irritating, I think Rust has the best ideas.
* Pattern-matching for success/error check
* Error passing with the `?` operator
* The correct error seems to appear when panicing due to an `unwrap` call
The most irksome thing remaining is to have to create your own error objects..
- shepmaster 7y ago> The most irksome thing remaining is to have to create your own error objects That's generally the purpose of the libraries outlined in the article — reducing the pain of creating the custom error types.