2 ms·
Can someone please define for me what exactly 'interface pollution' is and why it's so bad? Because I read this article, and the article from the Jooq blog he
by EdwardDiego 12y ago
Can someone please define for me what exactly 'interface pollution' is and why it's so bad?
Because I read this article, and the article from the Jooq blog he references, and I can't see anything beyond one guy's preference for one thing, and Java 8 does it the other way.
- Sharlin 12y agoSurely you can see the problem with the combinatorial explosion in the number of interfaces required?
- EdwardDiego 12y agoWe already have this 'explosion' in Java-land. What's the difference between interfaces implemented as a lambda and... interfaces with a single method implemented as an inline anonymous class? Which is effectively what these 'lambdas' are syntactic sugar for. It's still an improvement for Java the language.