3 ms·
> I like the ability explicitly state what variables are being captured. Why? You state what variables are being captured by just using them in the lambda body
by masklinn 11y ago
> I like the ability explicitly state what variables are being captured.
Why? You state what variables are being captured by just using them in the lambda body.
- jlebar 11y ago> You state what variables are being captured by just using them in the lambda body. Wow, have you never spent a week debugging a JavaScript memory leak?
- masklinn 11y agoNo. What I have done on the other hand was add unused lexical variables to an anonymous function so the runtime wouldn't optimise them out of the closure and I could still see them in the debugger.