Open jemc opened 7 years ago
Discussed on sync call - @sylvanc agrees it should work, and it's an implementation bug.
Adding the needs discussion tag here so we can check the status of this during the next sync call.
I wasn't aware this issue existed.
@sylvanc any progress on this?
As of #1648, the following works:
But the following doesn't:
If lambdas can automatically capture free references from the immediately surrounding scope, I'd expect (principle of least surprise) that they can also do so with free references from an outer scope surrounding that scope, with the surrounding scope being made to capture the reference intermediately.
That is, I'd expect this to happen implicitly: