return-from-lambda viewed as dangerous, good alternatives
Mark Mahieu
markmahieu at googlemail.com
Thu Jan 7 16:11:07 PST 2010
On 7 Jan 2010, at 23:06, Jonathan Gibbons wrote:
> So, in a closure, return means
> return from the enclosing closure; in a control abstraction, return
> means return from the enclosing method
Unless the control abstraction is in a closure, in which case an enclosed return would presumably return from the closure.
(I believe Ruby hedges its bets and offers different behaviour in 1.8 and 1.9).
Mark
More information about the lambda-dev
mailing list