News for hackers. Stuff that matters.
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.