logoalt Hacker News

samatman • 11/09/2024 • 1 reply • view on HN

There's absolutely a difference between an enumeration and a sum type.


Replies

randomdata • 11/09/2024

Exactly. One describes a type, the other a numberer. Very different concepts, even if the latter is often used in the implementation of the former (e.g. in Pascal and Rust). Glad to see you are past your earlier confusion.

➕ show 1 reply