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

Minor nitpick: Python actually has closure as far as I can tell.

But, no worries: Haskell programmers still have plenty to rant about Python. And vice versa.



Er, I rather meant that Python doesn't have a first-class lambda definitional form. You are right that you can get the python runtime to make closures.


You are right that the syntax for making closures is a bit wonky.

You either have to give them a name (with 'def'), or you only get a restricted subset of syntax (with 'lambda').

In practice, giving them a name is not too much of a hassle.




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

Search: