the.com/closures
Functions that secretly pocketed the variables from where they were born.
means In programming, a closure is a function that remembers and accesses variables from the scope it was created in, even after that scope has finished running.
from Coined in the 1960s by Peter Landin, who described a function bundled with its environment as 'closing over' its free variables, hence closure.
Memory trapThey keep variables alive past their natural lifespan.
Loop classicCapturing the wrong loop value: a rite of passage.
EverywhereJavaScript callbacks, Python decorators, Rust move blocks rely on them.