<html><head/><body><html><head></head><body>Change def to func? That's the worst idea I've heard yet. Def is already there; why break all existing code just for a word?<br><br><div class="gmail_quote">"Westley Martínez" <anikom15@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre style="white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif; margin-top: 0px">'def' is no more ambiguous than 'lambda', and is in fact more ambiguous,<br />for 'def' doesn't lend itself to anything other than the word define,<br />whilst 'lambda' can only mean lambda function.  Calling def explicit is<br />silly.  It only makes sense because def arbitrarily means a function in<br />Python (I'm proposing def become func or proc in Python 4000).<br /><br />To call lambda too 'computer sciencey' is equally ridiculous, for pro-<br />gramming is a key spawn of computer science.  A programmer needs to have<br />some knowledge of computer science to program, just like a physicist<br />needs knowledge of calculus to understand mechanics.<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">-----Original Message-----<br />From: Python-Dev [mailto:python-dev-bounces+anikom15=<a
href="http://gmail.com">gmail.com</a>@python.org] On<br />Behalf Of Ben Gift<br />Sent: Thursday, September 19, 2013 1:54 PM<br />To: python-dev@python.org<br />Subject: [Python-Dev] Use an empty def as a lambda<br /><br />I think the lambda keyword is difficult to understand for many people. It<br />would be more pythonic to use an empty def call instead.<br /><br /><br />For instance this:<br /><br /><br />words.sort(key = lambda x: x[2])<br /><br /><br />could look like this:<br /><br />words.sort(key = def (x): x[2])<br /><br /><br />It's obvious and explicit that we're creating an unnamed, anonymous function<br />this way.</blockquote><br /><br /><hr /><br />Python-Dev mailing list<br />Python-Dev@python.org<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/rymg19%40gmail.com">https://mail.python.org/mailman/options/python-dev/rymg19%40gmail.com</a><br /></pre></blockquote></div><br>
-- <br>
Sent from my Android phone with K-9 Mail. Please excuse my brevity.</body></html></body></html>