State of the Lambda

Jesse Kuhnert jkuhnert at gmail.com
Thu Jul 8 20:46:23 PDT 2010


Yes, saving characters is nice and all but what we really need are
better building blocks.

The community is holding it's breath, java7 means either continued
life / shelved language for better or more modern languages to run on
top of / or just something to abandon altogether.

I'm sure Oracle has it's own goals and needs, but some decisions live
on long after any one employer.
On Thursday, July 8, 2010, John Rose <john.r.rose at oracle.com> wrote:
> On Jul 8, 2010, at 12:02 PM, Brian Goetz wrote:
>
>> Another is to do something really CICE-like:
>>
>>       executor.submit(new Callable<String>(args) { -> "foo"} );
>
> Cute:  Starts like an anonymous inner class (so it shouts "I'm a class!") but ends with a closure body (which murmurs, "here's your code, sir").
>
> But, just because something can be compressed doesn't mean it should be.  A pattern needs to be common in order for its compression to pay off.  Are there numbers that show that inner classes with constructor arguments are common enough to make this extension of CICE worth the effort?  I suspect not.
>
> -- John
>
> P.S. I'll throw out a general question that is related:  How common is access to 'protected' names from inner classes that implement SAM types?  This is one of the peculiar strengths of CICE, but I'm curious how often it would be used.  I suspect it would be infrequently used.
>
>


More information about the lambda-dev mailing list