Y
Hacker News
new
|
ask
|
show
|
jobs
by
gaius
5719 days ago
Point 6, we are lucky to keep the ones we have, Guido is not keen on map, reduce, etc.
2 comments
yummyfajitas
5719 days ago
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).
link
silentbicycle
5719 days ago
In other words, list comprehensions are the Pythonic version of same.
link
sunqiang
5719 days ago
and Generator Expressions[1], a lazy version of list comprehensions [1]:
http://www.python.org/dev/peps/pep-0289/
link
silentbicycle
5719 days ago
Yeah, but generators have been done much better. Look at Icon, Lua, or Prolog.
link
endtime
5719 days ago
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.
link