[Python-ideas] A simple proposal concerning lambda

Stephan Houben stephanh42 at gmail.com
Wed Aug 22 12:51:28 EDT 2018


Let me stand up and say that I personally like lambda. It's the standard
terminology and not easily confused.

I doubt that "many Python users" have a problem with it. Evidence?

I dislike the def proposal strongly.
It is too similar to a normal def.
At least get a new keyword then

Some other languages:

lambda: scheme, lisp
\ : Haskell
fn : Standard ml
function : JavaScript
[] : C++

Stephan



Op wo 22 aug. 2018 18:16 schreef Mike Miller <python-ideas at mgmiller.net>:

> I've often thought the same about "lambda."
>
> Although I've long since gotten used to the word, "def" without a function
> name
> seemed like a better choice, especially for beginners.
>
> +0.25 for proposal ONE
>
> However, parentheses should be allowed and lambda put on a long
> deprecation
> schedule.
>
> -Mike
>
>
> On 2018-08-22 08:58, Jonathan Fine wrote:
> >
> > ONE.  Wherever you could have used 'lambda', you now have a choice.
> > You can still use 'lambda', or you can use 'def' instead. The
> > semantics are unchanged.
> >
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180822/f16e97f3/attachment.html>


More information about the Python-ideas mailing list