2 ms·
> Second option (separate interface) is obvious choice with duck-typing interfaces. And this is called the "adapter pattern" in Java. It's also very annoying
by pcwalton 12y ago
> Second option (separate interface) is obvious choice with duck-typing interfaces.
And this is called the "adapter pattern" in Java. It's also very annoying to have to use it when you hit it.