Closures for Java (0.6) specification part b

Talden talden at
Mon Dec 14 12:42:51 PST 2009

On Tue, Dec 15, 2009 at 8:50 AM, Neal Gafter <neal at> wrote:
> On Mon, Dec 14, 2009 at 11:47 AM, Jonathan Gibbons
> <Jonathan.Gibbons at> wrote:
>> 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.
> Maybe subtle for the specification, but not subtle for the Java programmer,
> as you don't see a lambda when you're writing a control invocation.

I think that's a really significant point that warrants clear mention
in the documentation. It comes up frequently yet, as you say, this is
a subtle point of confusion for reading the specification not reading
and writing java code.

>From the developers perspective they're not writing a lambda, they're
writing a local block of code - continue, break and return should act
as though they're local.

Aaron Scott-Boddendijk

More information about the closures-dev mailing list