4 ms·
I always thought of Rust's enums as simply a generalization of other languages' enum concepts, not a completely different thing.
by Gaelan 5y ago
I always thought of Rust's enums as simply a generalization of other languages' enum concepts, not a completely different thing.
- ebingdom 5y agoYes, that is what they are, but a generalization of a thing is not the same as the specific thing, and in this case the generalization already had other names (since it has been around for many decades in many other languages). It would have been preferable to use one of the existing names instead of adding a new one and thereby complicating the story.