|
|
|
|
|
by pcwalton
4735 days ago
|
|
> The parse tree for the closure should be able to ascertain the reachability of the variables in scope so that fences around particular sets of variables can be established. Sadly it's not quite that simple because of the behavior of `eval` (strictly speaking, direct `eval`): it can leak bindings into the surrounding scope. |
|
It seems like ChuckMcM is describing is reference counting which variables are needed in the closure. His suggestion would fix this memory issue, but probably have a big performance penalty.