Hacker News new | ask | show | jobs
by masterj 774 days ago
The term you're looking for is ADT - Algebraic Data Types

https://en.wikipedia.org/wiki/Algebraic_data_type