Hacker News new | ask | show | jobs
by mattnewport 574 days ago
- Sum types / discriminated unions

- Pattern matching (arguably a more flexible and general way to do the type of thing you have in your number 4 if syntax)