News for hackers. Stuff that matters.
Re:Ask PG: Lisp vs Python (2010) by gaius on Monday October 18, 2010 @11:23AM (#1803801)
Point 6, we are lucky to keep the ones we have, Guido is not keen on map, reduce, etc.
Re:Ask PG: Lisp vs Python (2010) by yummyfajitas on Monday October 18, 2010 @11:38AM (#1803875)
While Guido is not keen on reduce, I don't think he has any desire to eliminate list comprehensions (which are equivalent to map/filter).
Re:Ask PG: Lisp vs Python (2010) by silentbicycle on Monday October 18, 2010 @01:08PM (#1804258)
In other words, list comprehensions are the Pythonic version of same.
Re:Ask PG: Lisp vs Python (2010) by sunqiang on Monday October 18, 2010 @08:56PM (#1805762)
and Generator Expressions[1], a lazy version of list comprehensions [1]: http://www.python.org/dev/peps/pep-0289/
Re:Ask PG: Lisp vs Python (2010) by silentbicycle on Monday October 18, 2010 @09:28PM (#1805826)
Yeah, but generators have been done much better. Look at Icon, Lua, or Prolog.
Re:Ask PG: Lisp vs Python (2010) by endtime on Monday October 18, 2010 @02:12PM (#1804484)
I wonder why. I never really use map over list comps, but I've used reduce in several situations where a comprehension wouldn't have been appropriate.