Re:Using enums to represent state in Rust
by LoganDark on Friday September 22, 2023 @04:25PM
(#37617308)
I personally think enum was basically the only reasonable choice, as normal enums really are just a subset of tagged unions. They just happen to support tagged unions on top of them.
But honestly I think enum was a better choice.