A developer introduces the `scoped-error` Rust crate, motivated by dissatisfaction with existing error handling libraries like anyhow, thiserror, snafu, and exn. The core idea is wrapping fallible logic in an `expect_error()` closure that attaches context once per function boundary rather than at every call site. The crate type-erases inner errors into a boxed `Frame` type (capturing file location via `#[track_caller]`), produces readable tree-shaped error reports, and remains small enough to vendor directly. Comparisons with existing crates and code examples illustrate the ergonomic improvements.
1 Comment
Sort: