4 ms·
> Oh yeah and if the interface removed a method and you didn’t realise you might be dragging that useless methods for a long while. Then again it’s not like you
by tryfinally 2y ago
> Oh yeah and if the interface removed a method and you didn’t realise you might be dragging that useless methods for a long while. Then again it’s not like your Java-style interface is any different.
In C# I usually use explicit interface implementations. (They're inconvenient to type, but Rider has a macro for it.) When the interface changes or disappears, my code won't compile.
- masklinn 2y agoDidn’t know that existed. It’s a bit of a half assed version of half of type classes but it’s an improvement that this is at least available. Can you also implement interfaces on types you didn’t define?