4 ms·
Yes. I prefer ‘snafu’ but there are a few, and you could always roll your own.
by efnx 1y ago
Yes. I prefer ‘snafu’ but there are a few, and you could always roll your own.
- shepmaster 1y agoYeah, with SNAFU I try to encourage people going all-in on very fine-grained error types. I love it (unsurprisingly).
- smj-edison 1y ago+1 for snafu. It lets you blend anyhow style errors for application code with precise errors for library code. .context/.with_context is also a lovely way to propagate errors between different Result types.
- bonzini 1y agoHow does that compare to "this error for libraries and anyhow for applications"?
- smj-edison 1y agoYou don't have to keep converting between error types :)