transparent lambda

Mark Mahieu markmahieu at
Tue Dec 29 13:32:52 PST 2009

On 29 Dec 2009, at 21:11, Neal Gafter wrote:

> On Tue, Dec 29, 2009 at 1:02 PM, Mark Mahieu <markmahieu at> wrote:
>   On the other hand, labeled returns could be used with the method name as a label too.
> Maybe... labels don't currently shadow method names though, so what would be the meaning of "return foo:;" inside a lambda labeled "foo" inside a method called "foo"?
> These aren't ordinary labels that appear in the label namespace.  I'd suggest making it an error to use a lambda label corresponding to the name of the enclosing method.

Fair enough I suppose.

> By the way, instead of using a new keyword-ish thing, you could also use "break".

I tried that one out on a few examples earlier today.  It's a great fit for void-result lambdas, but I couldn't make up my mind whether I liked it quite so much when there's an actual result.  It has potential, I think.


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the closures-dev mailing list