[IronPython] lambda form
jimhug at exchange.microsoft.com
Mon May 9 18:06:11 CEST 2005
Timothy Fitz wrote:
> On 5/8/05, Luis M. Gonzalez <luismg at gmx.net> wrote:
> > Regarding lambda, map and reduce, Guido Van Rossum has said several
> > that these built-ins are amongst its "Python regrets".
> > This is what he said in a recent interview:
> > - If you could change some things that have been done in the
> > langage, what would it be ?
> > Drop lambda, filter, map and reduce. Make range() behave like
> > keys() and many other methods and built-ins return iterators rather
> > lists.
> With respect to IronPython, lambda, filter, map and reduce need to be
> implemented, for the same reasons lambda won't go away until python
> 3.0 if it ever does.
Of course IronPython implements these today and will continue to do so -
at least until we get to start targeting Python 3.0. The main issue is
timing. List comprehensions were implemented from the beginning, but
we're still getting around to nested scopes. I think this is the right
This doesn't mean that I'll stop encouraging people from using list
comprehensions instead of filter and map. The one tangible impact of
this preference is that I'm unlikely to work on very heavy duty
optimizations to improve the performance of map/filter anytime in the
More information about the Ironpython-users