[Python-Dev] Use an empty def as a lambda
R. David Murray
rdmurray at bitdance.com
Sat Sep 21 21:00:39 CEST 2013
More information about the Python-Dev mailing list
Sat Sep 21 21:00:39 CEST 2013
- Previous message: [Python-Dev] Use an empty def as a lambda
- Next message: [Python-Dev] Use an empty def as a lambda
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 21 Sep 2013 12:55:20 -0500, Ryan <rymg19 at gmail.com> wrote: > "Westley MartÃnez" <anikom15 at gmail.com> wrote: > >'def' is no more ambiguous than 'lambda', and is in fact more > >ambiguous, > >for 'def' doesn't lend itself to anything other than the word define, > >whilst 'lambda' can only mean lambda function. Calling def explicit is > >silly. It only makes sense because def arbitrarily means a function in > >Python (I'm proposing def become func or proc in Python 4000). > > 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? Note that whatever happens with Python4, breaking of backward compatibility (by anything other than the deletion of cruft) is very unlikely to be part of it. --David
- Previous message: [Python-Dev] Use an empty def as a lambda
- Next message: [Python-Dev] Use an empty def as a lambda
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list