Building Lambda and a Closure Question

David Harrigan dharrigan at gmail.com
Sun Nov 20 10:44:29 PST 2011


Hi,

On 20 November 2011 18:38, Mike Duigou <mike.duigou at oracle.com> wrote:
> Right. Sorry all.
>
> Mike
>
> On Nov 20 2011, at 10:34 , Brian Goetz wrote:
>
>>> BTW, your lambda could be simpler as you can use expression form for this case:
>>>
>>> final C c = () ->  { "Hello World" };
>>
>> Without the braces :)
>>
>> final C c = () ->  "Hello World";
>

Thank you all for your very welcome feedback.

1.
Brian, I've put a BIG disclaimer at the top of the posting to
encourage people to download the bundles first :-)

2.
Thank you for clarifying my confusion with asm-4.0 and missing
classes. I've updated my posting to refer to 4.0RC1.

3.
Thank you for clarifying the use of the semi-colon. Make sense now :-)
And thanks all for the code tip :-)

-=david=-

-- 
I prefer encrypted and signed messages. KeyID: B20A22F9
Fingerprint: 110A F423 3647 54E2 880F ADAD 1C52 85BF B20A 22F9

"It is not usually until you've built and used a version of the
program that you understand the issues well enough to get the design
right." - Rob Pike, Brian Kernighan.

No trees were harmed in the sending of this message, however, a number
of electrons were inconvenienced.


More information about the lambda-dev mailing list