A replacement for lambda

Bengt Richter bokr at oz.net
Sat Jul 30 22:58:55 CEST 2005


On Fri, 29 Jul 2005 18:07:31 -0400, Mike Meyer <mwm at mired.org> wrote:

>I know, lambda bashing (and defending) in the group is one of the most
>popular ways to avoid writing code. However, while staring at some Oz
>code, I noticed a feature that would seem to make both groups happy -
>if we can figure out how to avoid the ugly syntax.
>
>This proposal does away with the well-known/obscure "lambda"
>keyword. It gives those who want a more functional lambda what they
>want. It doesn't add any new keywords. It doesn't add any new magic
>characters, though it does add meaning to an existing one. That could
>be replaced by a new magic token, or adding magic meaning to a
>non-magic token. It breaks no old code either way.
>
>I haven't really worked out all the implications; I just wanted to
>throw it out and see what everyone else thought about it. As a
>result, the code examples tend to be ugly.
>
>As previously hinted, this feature is lifted from Oz.

try

    http://groups-beta.google.com/groups?as_q=anonymous+def&as_ugroup=comp.lang.python

for much discussion of this ;-)

Regards,
Bengt Richter



More information about the Python-list mailing list