Fear and suspicion of lambdas, was Re: Meta decorator with parameters, defined in explicit functions

dieter dieter at handshake.de
Fri Jul 1 03:04:50 EDT 2016


Peter Otten <__peter__ at web.de> writes:

> Lawrence D’Oliveiro wrote:
>
>> On Tuesday, June 28, 2016 at 5:03:08 PM UTC+12, Ben Finney wrote:
>> 
>>> I would like to see a more Pythonic, more explicit and expressive
>>> replacement with its component parts easily understood.
>> 
>> I don’t know why this fear and suspicion of lambdas is so widespread among
>> Python users ... former Java/C# programmers, perhaps?

Maybe, it's the name ("lambda").

In Javascript, anonymous functions are widespread (and extensively
used for e.g. callback definitions) - but it uses the much more familiar
"function" (rather than "lambda") for this purpose.




More information about the Python-list mailing list