|
|
|
|
|
by shepmaster
664 days ago
|
|
The biggest thing to me is that many people lump errors by type (“all IO errors are equivalent”) which is very wrong to me. SNAFU encourages and streamlines bucketing your errors into detailed chunks. Along the way, it makes adding details to your error easier (automatic calls to Into without a closure; optional implicit details). It combines string-like errors (anyhow) and structured errors (thiserror) in one library. It has basic command line error formatting that shows the causal chain without duplication. I don’t use eyre so I don’t feel comfortable comparing to it. |
|