[Tutor] Ruby Code Blocks vs. Python Lambdas

Carroll, Barry Barry.Carroll at psc.com
Thu Nov 9 18:45:55 CET 2006

Hello, John
> -----Original Message-----
> From: jfouhy at gmail.com [mailto:jfouhy at gmail.com] On Behalf Of John
> Sent: Tuesday, November 07, 2006 6:56 PM
> To: Carroll, Barry
> Cc: tutor at python.org
> Subject: Re: [Tutor] Ruby Code Blocks vs. Python Lambdas
> On 08/11/06, Carroll, Barry <Barry.Carroll at psc.com> wrote:
> > Correct indeed.  But lambda functions ARE anonymous.
> >
> >         "Python supports the creation of anonymous functions (i.e.
> >         functions that are not bound to a name) at runtime, using
> >         a construct called "lambda".
> >
> >
> > So that principle has already been bent.  Since code blocks are more
> > flexible and more intuitive than lambdas, why not add them to the
> > box?  To quote some more principles:
> PEP3099 (http://www.python.org/dev/peps/pep-3099/) makes this seem
> unlikely..
> --
> John.

Yes, I'd say it certainly does.  It's unfortunate, IMHO, but I'm not a
language designer and probably don't understand all the implications of
such a change.  -sigh-

barry.carroll at psc.com
We who cut mere stones must always be envisioning cathedrals.

-Quarry worker's creed

More information about the Tutor mailing list