Hacker News new | ask | show | jobs
by n_plus_1_acc 957 days ago
That's inherited from OCaml I think.

https://www.ocamlwiki.com/wiki/Enum

2 comments

I don't think so, OCaml consistently calls them "variant types". I don't know who wrote that page, but that wiki didn't even exist before September and it isn't endorsed by ocaml.org, so I suggest you don't consider it authoritative.
Nobody in the OCaml community commonly refers to them as Enum's today or any time recently (maybe they were at the time Rust was created though? IDK).

They're usually called 'variants'.