neal at gafter.com
Tue Dec 29 13:11:38 PST 2009
On Tue, Dec 29, 2009 at 1:02 PM, Mark Mahieu <markmahieu at googlemail.com>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.
By the way, instead of using a new keyword-ish thing, you could also use
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the closures-dev