3 ms·
Even though, pattern matching (and algebraic datatypes) would work just as well in an imperative language as in a function setting. (Not sure, whether you'd ne
by eru 12y ago
Even though, pattern matching (and algebraic datatypes) would work just as well in an imperative language as in a function setting.
(Not sure, whether you'd need garbage collection to make pattern matching really useful, though.
- sitkack 12y agoPattern matching is welcomed everywhere, it saves conditionals and keeps the code clean.