logoalt Hacker News

samatman11/09/20241 replyview on HN

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


Replies

randomdata11/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