3 ms·
That's not the important/valuable use case for what people normally refer to as "pattern matching".
by lmm 10y ago
That's not the important/valuable use case for what people normally refer to as "pattern matching".
- raspasov 10y agoI've recently found dynamic pattern matching pretty valuable to completely replace REST-like server-side APIs with a data-oriented API that gets pattern matched and dispatched based on the actual values and shapes of the data structure. It helps almost completely avoid the /get/this /get/that /set/those explosion of API getters and setters that ultimately leads to very complex client logic that makes any notion of consistency at a distance very hard to reason about.
- lmm 10y agoI really don't think you're talking about pattern matching in the usual sense. So it's probably better to use a different term.