Closures for Java (0.6) specification part b

Neal Gafter neal at gafter.com
Mon Dec 14 11:22:42 PST 2009


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 sun.com
> 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...
URL: http://mail.openjdk.java.net/pipermail/closures-dev/attachments/20091214/2ea84aa3/attachment-0001.html 


More information about the closures-dev mailing list