3 ms·
I am a big fan of this but the class based matching is a weak example as each case could be implemented as a method call on the class.
by zeckalpha 5y ago
I am a big fan of this but the class based matching is a weak example as each case could be implemented as a method call on the class.
- benhoyt 5y agoWhich specific class matching example are you referring to, and how would you implement the matches as method calls?
- _dain_ 5y agoYes, but what if you don't have control over the class definitions because you're importing them from elsewhere? It seems a bit overkill to subclass all of them.