A Type Stronger than the Sum of its Components
4 points by schneems
4 points by schneems
I pretty much always create structs for the data for each variant vs. just using the unnamed associated data style.
X-link to conversation on Reddit https://www.reddit.com/r/rust/comments/1wpz08w/a_type_stronger_than_the_sum_of_its_components/