Re: [Python-Dev] Let's send lambda to the shearing shed (Re: Let's just *keep* lambda)

2006-02-09 Thread Bengt Richter
On Thu, 09 Feb 2006 16:41:10 +1300, Greg Ewing [EMAIL PROTECTED] wrote: My thought on lambda at the moment is that it's too VERBOSE. If a syntax for anonymous functions is to pull its weight, it needs to be *very* concise. The only time I ever consider writing a function definition in-line is

Re: [Python-Dev] Let's send lambda to the shearing shed (Re: Let's just *keep* lambda)

2006-02-09 Thread Georg Brandl
Bengt Richter wrote: 1) Replace lambda args: value with args - value or something equivalently concise, or Yet another bike shed color chip: !(args:expr) # == lambda args:expr and !(args::suite) # == (lambda args::suite) Please drop it. Guido pronounced on it, it is _not_

[Python-Dev] Let's send lambda to the shearing shed (Re: Let's just *keep* lambda)

2006-02-08 Thread Greg Ewing
My thought on lambda at the moment is that it's too VERBOSE. If a syntax for anonymous functions is to pull its weight, it needs to be *very* concise. The only time I ever consider writing a function definition in-line is when the body is extremely short, otherwise it's clearer to use a def