|
|
|
|
|
by randomdata
844 days ago
|
|
> Rust's enums are great. Rust doesn't have enums. It has sum types – that for some reason it arbitrarily decided to call enums. Sum types are great. There is a good case to be made that Go would benefit from the addition of sum types. But until that day there isn't much more you can do with enums. That's all enums are – a set of named constants. |
|
Not the first time a word has been used for several nearly-unrelated concepts, and it won't be the last.