News for hackers. Stuff that matters.
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...:
Re:Kotlin: A Language with a Bright Future by lmm on Monday November 20, 2017 @12:29PM (#15741543)
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.