InfoQ Interview: Joshua Bloch on Closures, Needed Java Features, Google
Watch Joshua Bloch's Interview (17 min).
Joshua Bloch implemented the Java Collections Framework and is the author of Effective Java and Java Puzzlers. He now works at Google where he is in charge of all their Java infrastructure.
On Closures, Joshua comments:
I think closures in java are a good thing. We've basically had them since 1.1 in the form of anonymous class instances and those are a bit clunky so I definitely see a place for improvement support for closures; on the other hand some of the proposals that I've seen floating around are overly complex...If we add more support for closures I think it has to be in the spirit of the current support, which means that closures should take the form of instances, of types that have a single abstract method, whether they are interface types such as Runnable , or class types such as TimerTask...
Correction: the JDK 5.0 language enhancements were largely implemented by me alone (Neal Gafter), except for Generics for which I collaborated with Martin Odersky, Mads Torgersen, Peter von der Ahe, Christian Plesner Hansen, and Erik Ernst. I also added generics support to (i.e. retrofitted) the existing collections classes and core APIs. Joshua contributed some of the language support libraries, most notably the libraries supporting annotations.
Ronny Kohavi Dec 12, 2013
Christian Legnitto Dec 12, 2013