Hacker News new | ask | show | jobs
by issafram 700 days ago
Eh I don't see the need for it. Explicit is the way to do. The biggest mistake they've made in recent memory was adding default implementations of interfaces. Makes no sense.
1 comments

It would be useful in testing, mocking (faking) sealed classes etc
You can do that with explicit implementations just fine e.g. haskell type classes (and their less competent sibling rust traits).

It is, if anything, better: you can abstract over multiple third party types, and you’re not stuck with the interface they defined, so if you need to switch in the future you can.