3 ms·
Pattern matching interfaces also makes finding exactly what underlying object is being used in a given context difficult as well. With explicitly declared inter
by jbarciauskas 9y ago
Pattern matching interfaces also makes finding exactly what underlying object is being used in a given context difficult as well. With explicitly declared interfaces, you can easily find all implementations. With pattern matching it's a bit more complicated.
- oelmekki 9y agoYeah indeed, there's that too, although I'm glad we can't define methods on interfaces (using the interface as method receiver), so it quite reduces the complexity to just having to figure out the actual type, most often found just by inspecting the caller.