4 ms·
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 function
by grunt 17y ago
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.
- ubernostrum 17y agoGlad to know I can add you to my list of people who believe that Haskell does not (and by definition cannot) have closures.
- blasdel 17y agoYou can't have closures without variables to close over! :)