4 ms·
I think it might be due to the O'Caml influence on early Rust. They call them enums there[0]. [0] https://www.ocamlwiki.com/index.php?title=Enums_in_OCaml http
by Quekid5 3y ago
I think it might be due to the O'Caml influence on early Rust. They call them enums there[0].
[0] https://www.ocamlwiki.com/index.php?title=Enums_in_OCaml https://www.ocamlwiki.com/index.php?title=Enums_in_OCaml
- ReleaseCandidat 3y agoThey are called variants in OCaml (and inductive data types in Roqc). But way more important: this OCaml wiki is an AI generated mess full of, well, bullshit. https://discuss.ocaml.org/t/whats-up-with-ocamlwiki/13605 https://discuss.ocaml.org/t/whats-up-with-ocamlwiki/13605
- Quekid5 3y agoAh, I see. That's sad :( ... and now that you mention it, I do remember the variants terminology, esp. around the polymorphic variants feature. It's been 20+ years since I used OCaml, I'm afraid...