Block Lambdas: break and continue

Axel Rauschmayer axel at
Mon Jan 16 10:16:41 PST 2012

> However, block lambdas are often evaluated for a value and none of the current continue/break based solutions include a way to provide an explicit continuation value.  Here is an idea for that:
>     foo  {||
>        exit: {
>             ...
>             if (...) break exit with "early";  //[no LineTerminator here] before "with"
>             ...
>         }
>    };


It might make sense to also introduce an “unlabeled” break-with that exits from the current (unlabeled) block.

Dr. Axel Rauschmayer
axel at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list