[Python-Dev] Adventures with ASTs - Inline Lambda

Fredrik Lundh fredrik at pythonware.com
Thu Feb 16 09:33:47 CET 2006

Talin wrote:

> So the general notion is similar to the various proposals on the Wiki -
> an inline keyword which serves the function of lambda. I chose the
> keyword "given" because it reminds me of math textbooks, e.g. "given x,
> solve for y". And I like the idea of syntactical structures that make
> sense when you read them aloud.

but that's about the only advantage you get from writing

    (x*x given x)

instead of

    lambda x: x*x

right ?  or did I miss some subtle detail here ?

> I definately don't want to start a flame war, although I suspect I already
> have :/

I think most about everything has already been said wrt lambda already,
but I guess we could have a little war on spelling issues ;-)


More information about the Python-Dev mailing list