Lambda's/Closures & Extension Methods in JDK 1.6
isidore at setgame.com
Wed Sep 29 00:36:56 PDT 2010
On Tue, Sep 28, 2010 at 11:55 AM, Brian Goetz <brian.goetz at oracle.com>wrote:
> I've implemented 2 features to the JDK 6 without any changes to the JDK,
>> JavaC, Java Syntax, or Java Byte code. As such, I think they might be of
>> interest to Project Coin.
>> Those 2 features are:
>> Extension Methods
> We considered, and explicitly rejected, implementing extension methods with
> a compiler-only strategy because it can cause all sorts of "brittle class"
As I mentioned, I'm currently using them without even changing the compiler.
They work well, but I find the syntax a bit cumbersome. I haven't found any
brittle class issues. I should mention that the syntax was cumbersome enough
that I didn't use them for about a year, until I started using lambdas. Now
they have become more essential.
Did you try out the solution?
More information about the coin-dev