Closures for Java (0.6) specification part b

Jonathan Gibbons Jonathan.Gibbons at Sun.COM
Mon Dec 14 11:47:08 PST 2009

Ouch. That's pretty subtle, especially as the statement in a control 
invocation form is defined to use an expression lambda instead of a 
statement lambda. 

-- Jon

Neal Gafter wrote:
> That's not the case.  In a statement lambda, all three are local.  In 
> an expression lambda, they are nonlocal.
> Cheers,
> Neal
> On Mon, Dec 14, 2009 at 11:20 AM, Jonathan Gibbons 
> <Jonathan.Gibbons at <mailto:Jonathan.Gibbons at>> wrote:
>     Neal,
>     As much as I like control flow abstraction, it seems that your
>     proposal 0.6b leaves us in a half-way house with respect to
>     control flow keywords.   Using the 'for' modifier, 'break' and
>     'continue' get to work as expected, but it would appear that
>     'return' is still local to the lambda function, which is mildly
>     icky.  Have you considered this issue?
>     -- Jon

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the closures-dev mailing list