You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would expect this code to log 2, but it logs 1: all values from the context that are used by the function are frozen at function definition time.
Originally, this was meant to deal with loop variables, for which we want a new binding at every loop iteration, but it is overzealous and freezes all free variables.
consider the case of slots
The text was updated successfully, but these errors were encountered:
Playground link
We would expect this code to log 2, but it logs 1: all values from the context that are used by the function are frozen at function definition time.
Originally, this was meant to deal with loop variables, for which we want a new binding at every loop iteration, but it is overzealous and freezes all free variables.
consider the case of slots
The text was updated successfully, but these errors were encountered: