Skip to content

Instantly share code, notes, and snippets.

View cor's full-sized avatar
❄️
Nix

cor cor

❄️
Nix
View GitHub Profile
@quad
quad / 0-modular-errors-with-rusts-thiserror.md
Last active April 26, 2024 15:57
Modular Errors with Rust's thiserror

I've been writing Rust full-time with a small team for over a year now. Throughout, I've lamented the lack of clear best practices around defining error types. One day, I'd love to write up my journey and enumerate the various strategies I've both seen and tried. Today is not that day.

Today, I want to reply to a blog post that almost perfectly summarised my current practice.

Go read it; I'll wait!