[Python-Dev] Let's send lambda to the shearing shed (Re: Let's just keep lambda) (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 9 04:41:10 CET 2006
- Previous message: [Python-Dev] Let's just *keep* lambda
- Next message: [Python-Dev] Let's send lambda to the shearing shed (Re: Let's just *keep* lambda)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 instead.
Given that, I do not have the space to waste with 6 or 7 characters of geeky noise-word.
So my vote for Py3k is to either
Replace lambda args: value with
args -> value
or something equivalently concise, or
- Remove lambda entirely.
-- Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | Carpe post meridiam! | Christchurch, New Zealand | (I'm not a morning person.) | greg.ewing at canterbury.ac.nz +--------------------------------------+
- Previous message: [Python-Dev] Let's just *keep* lambda
- Next message: [Python-Dev] Let's send lambda to the shearing shed (Re: Let's just *keep* lambda)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]