|
|
|
|
|
by kazinator
1365 days ago
|
|
> If you have structured data, that data should be contained in structures, not cons cells. There is pattern matching on structures. If you switch from conses to structures, the relevance of pattern matching doesn't go away. Types divide the data into categories, but the categories don't capture all the variation among the instances. Pattern matching in functional languages is mostly done on algebraic types. |
|