Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Python’s lambda is broken. Parent comment
As the article demonstrates, using nested lambda's doesn't work the way you expect for closures. Using an object does.
edit: update. I found the presentation where guido talks about how he dislikes all the functional stuff, including lambda.
http://74.125.93.104/search?q=cache:2QztD1KncJgJ:www.python....
Just rubbing it in.
As the article demonstrates, using nested lambda's doesn't work the way you expect for closures. Using an object does.
edit: update. I found the presentation where guido talks about how he dislikes all the functional stuff, including lambda.
http://74.125.93.104/search?q=cache:2QztD1KncJgJ:www.python....