4 ms·
That's inherited from OCaml I think. https://www.ocamlwiki.com/wiki/Enum https://www.ocamlwiki.com/wiki/Enum
by n_plus_1_acc 3y ago
That's inherited from OCaml I think.
https://www.ocamlwiki.com/wiki/Enum https://www.ocamlwiki.com/wiki/Enum
- ode 3y agoNobody 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'.
- debugnik 3y agoI 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.