|
|
|
|
|
by lmm
996 days ago
|
|
Of the two comprehension syntaxes in Haskell, Python picked the wrong one. Do notation (or, equivalently, Scala-style for/yield) feels much more consistent and easy to use - in particular the clauses are in the same order as a regular for loop, rather than the middle-endian order used by list comprehensions. |
|
Comprehension in both Python and Haskell (for both lists and other structures) use the same order in both language, as far as I remember.