Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
n_plus_1_acc
on Nov 6, 2023
|
parent
|
context
|
favorite
| on:
The first stable release of a memory safe sudo imp...
That's inherited from OCaml I think.
https://www.ocamlwiki.com/wiki/Enum
debugnik
on Nov 6, 2023
|
next
[–]
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.
ode
on Nov 6, 2023
|
prev
[–]
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:
https://www.ocamlwiki.com/wiki/Enum