3 ms·
Algebraic Data Types. /thread
by pshirshov 2y ago
Algebraic Data Types. /thread
- the__alchemist 2y agoI agree with you, and the two posters who suggested "enums". This seesm to be confirmation that these terms are interchangeable, and refer to a choice type. Perhaps a distinction is that ADTs can hold optionally hold an inner value, like in rust. Fair enough? And perhaps to the title: Misusing booleans is a trap.