News for hackers. Stuff that matters.
Re:Learning to Program: Why Python? by chubot on Wednesday May 09, 2012 @03:51AM (#3947511)
I wrote a nonblocking library (for pipes/processes/signals) in Python like node.js. So many of the callbacks end up being inner functions (they don't when you decide you can make all the necessary state object-level, and thus make the callback a method).

The anonymous syntax actually reads better than defining an inner function and then calling it.

I think the real reason why they were never added is syntax, and honestly I can't think of a good syntax myself.

Re:Learning to Program: Why Python? by simondlr on Wednesday May 09, 2012 @04:43AM (#3947621)
That makes sense. Callback methods. Thanks.