3 ms·
We've been trending toward more localized errors in our codebase at work for a while, largely because of issues like the ones mentioned in this article, althoug
by mplanchard 4y ago
We've been trending toward more localized errors in our codebase at work for a while, largely because of issues like the ones mentioned in this article, although we haven't gotten quite as far as is described here. I'll be adding this to our internal list of articles for rust engineers to read as a part of establishing patterns and idioms!
I do think thiserror can help with a fair bit of the boilerplate, especially when making lots of error types. It'll be interesting to see how we can get the patterns described in this post playing nicely together with it.