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

closures and objects with a single invoke() method have been considered equivalent in many views for some time.


Exactly, that's why I disagree with parent's comment:

> If there's anything that is not an object, it's a function!


Functions aren't closures. To be a closure it needs to be a function paired with an environment. Functions do not inherently carry their environment with them.




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

Search: