Multi-line lambda proposal.

Carl Banks invalidemail at aerojockey.com
Tue May 9 14:41:13 EDT 2006


DH wrote:
> Kaz Kylheku wrote:
> > I've been reading the recent cross-posted flamewar, and read Guido's
> > article where he posits that embedding multi-line lambdas in
> > expressions is an unsolvable puzzle.
>
> To say that multi-line lambda is an unsolvable problem is completely
> absurd.

Note that the "solution" is understood to entail the BDFL stamp of
approval.

 Furthermore it has already been solved.
> http://wiki.python.org/moin/AlternateLambdaSyntax#head-c81743c0b461ab6812564785c7bc7ba581dec6fa


Meh.  I think the syntax you linked to would result in gobs of ugly and
unreadable code.  I like how the examples are always part of relatively
simple statements ("Look, it's readable!").  Try citing examples of
these statements at work in if conditions, generator expressions, as
default arguments to functions, multiple times in the same statement.
Try showing what they look like nested.  The "readable" example would
turn into ASCII vomit.

Probably the day it makes it into Python is the day Python jumps the
shark.


Carl Banks




More information about the Python-list mailing list