Hacker News new | ask | show | jobs
by Quekid5 844 days 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

1 comments

They 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

Ah, 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...