Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's inherited from OCaml I think.

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



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'.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: