4 ms·
Second option (separate interface) is obvious choice with duck-typing interfaces. edit: just to clarify: I don't like the idea "write more descriptive (over-ve
by EugeneOZ 12y ago
Second option (separate interface) is obvious choice with duck-typing interfaces.
edit: just to clarify: I don't like the idea "write more descriptive (over-verbose) method names" as solution for this problem.
- 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.