Is this a good use for lambda

Steven Bethard steven.bethard at gmail.com
Sun Dec 19 23:16:10 CET 2004


Simo Melenius wrote:
> Now, if lambda was more than an expr, dumping "lambda" keyword would
> be a convenient idea -- unnecessary keywords can make the language
> less clear in some cases. One could do with Python's plain and simple
> "def", like this:
> 
> filter (def (x): x*2, myseq)
> 
> (Disclaimer: Without thinking further I'm not sure whether the above
> syntax would be unique enough, Python grammar-wise.)

If you'd like to think further about it, check the archves -- there's 
about a million different arguments about this.  A recent brief one (2 
days ago):

http://mail.python.org/pipermail/python-list/2004-December/255728.html

Steve



More information about the Python-list mailing list