<p dir="ltr"><br>
On 20 Sep 2013 07:04, "Joe Pinsonault" <<a href="mailto:joe.pinsonault@gmail.com">joe.pinsonault@gmail.com</a>> wrote:<br>
><br>
> I think it's a great idea personally. It's explicit and obvious. "lamda" is too computer sciencey</p>
<p dir="ltr">This suggestion has been made many times, occasionally with the associated "must be contained in parentheses when used as an expression" caveat that is needed to avoid making the language grammar ambiguous at the statement level.</p>

<p dir="ltr">It mainly runs afoul of two problems:</p>
<p dir="ltr">- reusing the same keyword would make the additional syntactic restrictions of the expression form even more confusing.<br>
- Guido doesn't particularly like the notion of functions-as-expressions in the first place (which is why lambda was on thin ice when Python 3 was being designed), so doesn't actually mind the fact that people avoid using them because they don't like the keyword. </p>

<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">><br>
> On Sep 19, 2013 1:55 PM, "Ben Gift" <<a href="mailto:benhgift@gmail.com">benhgift@gmail.com</a>> wrote:<br>
>><br>
>> I think the lambda keyword is difficult to understand for many people. It would be more pythonic to use an empty def call instead. <br>
>><br>
>> For instance this:<br>
>><br>
>>     words.sort(key = lambda x: x[2])<br>
>><br>
>> could look like this:<br>
>>   <br>
>>     words.sort(key = def (x): x[2])<br>
>><br>
>> It's obvious and explicit that we're creating an unnamed, anonymous function this way. <br>
>><br>
>> _______________________________________________<br>
>> Python-Dev mailing list<br>
>> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
>> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
>> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/joe.pinsonault%40gmail.com">https://mail.python.org/mailman/options/python-dev/joe.pinsonault%40gmail.com</a><br>
>><br>
><br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
><br>
</p>