Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
DanWaterworth
13y ago
0 comments
Save
Share
> You're right that a closure only needs to contain the variables that are closed over.
You would think so, but this assumption fails in the presence of eval.
0 comments
1 comments · 1 top-level
top
newest
oldest
bmm6o
13y ago
Sure, but that's the only exception, right? If there's no eval call in the function that requires the closure it's easily determined what variables don't need to be included, right?
j
/
k
navigate · click thread line to collapse