Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Where is the part, where this is "careful"? This is just how scopes work. I don't see what is special about the inner functions using things in the scope of the outer functions.


Excessive use of external bindings in a closure can make it hard to reason about lifetimes in cases where that matters (e.g. when you find out that a huge object graph is alive solely because some callback somewhere is a lambda that closed over one of the objects in said graph).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: