Re:Kotlin: A Language with a Bright Future
by actsasbuffoon on Monday November 20, 2017 @12:10PM
(#15741400)
That's because Python's list comprehensions were derived from Haskell's implementation: https://wiki.python.org/moin/PythonVsHaskell#List_Comprehens...:
[ Parent
| on HN ]
As per https://wiki.haskell.org/List_comprehension , many Haskell users prefer to use do syntax (indeed I wasn't aware that the list comprehension syntax existed).
Re:Kotlin: A Language with a Bright Future
by actsasbuffoon on Monday November 20, 2017 @01:53PM
(#15742158)
Agreed, I never use list comprehensions in Haskell. I feel like they're almost always harder to read.