[Python-ideas] Multi Statement Lambdas

Anders Hovmöller boxed at killingar.net
Sun Oct 21 12:17:48 EDT 2018


>  A powerful general purpose language should not limit itself to one statement in a closure.

Nitpick on language: It doesn't. Lambdas are not the only way to do a closure. 

It's important to be precise when discussing these things. 

> Lets add mutli-statement lambdas to python either with just curly braces or with an indent based machine. 

Mostly it's just better with a function. Do you have some more compelling examples where you can't use a function smoothly?

/ Anders


More information about the Python-ideas mailing list