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
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_
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