3 ms·
We're using thiserror, and haven't explored macros that generate an enum from the Result type. I remember there are crates exploring this, but this is somethin
by simag 6y ago
We're using thiserror, and haven't explored macros that generate an enum from the Result type. I remember there are crates exploring this, but this is something that would really benefit from compiler support. Ocaml's polymorphic variants appear to provide an interesting solution here.