http://bitbucket.org/wkornewald/pyvascript/src/tip/pyvascrip...
It would look better with syntax highlighting, but I'm not sure if the code stays readable enough with multi-line lambdas.
It also becomes more ugly once you want to use lambdas within dicts or lists: http://bitbucket.org/wkornewald/pyvascript/src/tip/tests/tes...
The problem here is that
return x,
could be either a lambda returning the tuple (x,) or the dict/list item separator, so the separator must be put on a separate line.
I'm sure something like this was already proposed, so what were Guido's objections against it? I suppose it's not possible to make multi-line lambas readable enough?
Maybe we need more powerful IDEs that go beyond editing text in a "stupid" text field and instead work directly on the AST and use other visual hints like boxes around functions/lambdas, etc.