Re:Using enums to represent state in Rust
by dep_b on Friday September 22, 2023 @08:47AM
(#37611303)
I love enums in Swift because they can have associated data. It's great to see this in other languages as well. They're so great to support the different states your application can be in, they can replace a lot of nullable values that only are set in a given state and in others not.
[ Parent
| on HN ]
There are no comments on this comment yet.