> 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"
>             ...
>         }
>    };


+1

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

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to