[Python-3000] lambda
Lennart Regebro
regebro at gmail.com
Wed Mar 26 08:51:12 CET 2008
On Tue, Mar 25, 2008 at 9:42 PM, Olivier Verdier <zelbier at gmail.com> wrote:
> repeats over and over again: lambda is just synctactic sugar for a function
> definition. Here are suggestion for a new name for lambda, which will much
> better describe what it is, namely a *function*.
More specifically, an anonymous function. Best would be if you could
just use def anonymously. And preferrably use normal return syntax:
def(a,b): return a+b
instead of
lambda a, b: a+b
would actually make it readable enough that I might start using it. ;)
Calling it anondef, or adef instead of just def would of course be OK too.
But as mentioned, that's probably too late. And I'm sure everybody
that actually likes lambda would hate it. :) Different mindsets there
I think.
--
Lennart Regebro: Zope and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64
More information about the Python-3000
mailing list