3 ms·
Its cool but I would call it switch-by-class-type instead of pattern matching.
by ape4 7y ago
Its cool but I would call it switch-by-class-type instead of pattern matching.
- oaiey 7y agoThe example is very limited. C# has a dozen different matching method including tuples, object deconstruction, etc. What i vaguely remember from my OCaml times, I think working with lists is the major gap they have. And that is non-trivial.