Hacker News new | ask | show | jobs
by ajuc 4048 days ago
> These variables also won't get garbage collected because of that.

I should probably be more precise - only the variables from outside scope that the closure actually uses won't get GCed as long as that closure is referenced. Other variables will.