Minimal Viable Zig Error Contexts

5 points by goldstein


goldstein

I think it generalizes well by storing the metadata instead of logging it, I wrote about it in the context of Rust before. the more I think about it, the more I like this pattern more than the Rust-idiomatic error ADTs: it is often faster (because it cuts down on error type size), composes better and feels more flexible.