(no title)
jackmott | 2 years ago
Rust enums are sum types, and imho are one of the few unambiguously good language feature ideas. I miss them any time I use a language where they are not built in. F# is another nice language where they are first class and where I first got familiar with them
Karellen|2 years ago
I wouldn't mind so much if they just called them "sum types" or "tagged unions", or even some other new name. Reusing the existing name "enum" from other languages, but differently from the way all those other languages have used it for 45 gorram years, is freaking maddening.
cyber_kinetist|2 years ago
n_plus_1_acc|2 years ago
https://www.ocamlwiki.com/wiki/Enum