Re:Tagged Unions Are Overrated
by junke on Friday February 19, 2021 @08:50AM
(#26193098)
The categorization would need to fit nicely into a tree of types, which seems unlikely, so a tag-based approach would be better. With a bit of custom DSL you can enforce exhaustiveness.
Elsewhere:
Maybe this can be done with Rust macros too
[ Parent
| on HN ]
There are no comments on this comment yet.