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

Only since Python 3000, with the addition of the "nonlocal" declaration, can python claim to have closures. And yes, Python does also have "first-class functions"--in the same way that C has first-class functions. It's the "anonymous" part that it has difficulty with.


Glad to know I can add you to my list of people who believe that Haskell does not (and by definition cannot) have closures.


You can't have closures without variables to close over! :)




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

Search: