3 ms·
The second comment on that page says python owes its list comprehensions to haskell. Is that true? Did Guido (or someone from python land) look at haskell and s
by jon6 15y ago
The second comment on that page says python owes its list comprehensions to haskell. Is that true? Did Guido (or someone from python land) look at haskell and say 'hm list comprehensions are cool, lets put them in python!' or was it more like python rediscovered list comprehensions and the design in both haskell and python is just the obvious way to do it.
- sunqiang 15y agofrom http://wiki.python.org/moin/PythonVsHaskell http://wiki.python.org/moin/PythonVsHaskell List Comprehension Syntax: Python's list comprehension syntax is taken (with trivial keyword/symbol modifications) directly from Haskell. The idea was just too good to pass up.