|
|
|
|
|
by sirwhinesalot
1671 days ago
|
|
Record classes and pattern matching get you 90% of the way there thankfully.
Not perfect, but good enough. It's funny how much of a difference being able to write each case in a single line and have equality and all that stuff automatically taken care of makes.
Honestly that's more important than the exhaustive pattern matching you get with ADTs. I can live with "default: throw". |
|