Block Lambdas: break and continue
Brendan Eich
brendan at mozilla.org
Sat Jan 14 23:04:00 PST 2012
> Allen Wirfs-Brock <mailto:allen at wirfs-brock.com>
> January 14, 2012 9:50 PM
>
>
>
> With block lambdas that support the return statement we already have
> escape continuations:
Right you are, but simulating "early return" in a block-lambda requires
the caller to pass down a {|v| return v} block -- a bit of tedium that
could take too many evenings, to borrow from Oscar Wilde.
/be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120114/34b55bd3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postbox-contact.jpg
Type: image/jpeg
Size: 1293 bytes
Desc: not available
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120114/34b55bd3/attachment.jpg>
More information about the es-discuss
mailing list