CommentNov 2, 2017
About error handling.. Let's say i'm a crate creator. For now recommended strategy for error handling is to make own error type: MyLibError and wrap all possible error with it. Let's say someones uses my crate and he/she also need to wrap around my error with its own error type. Now when error occurs in 'ending' crate then there is a chain of converting errors, like: std::io::Error > some-lib1 > some-lib2 > .. which a lot of conversion is made + a lot of wrapper code is needed Is there a way of doing it better?