Re:Notes on Haskell: What's Wrong with the For Loop
by RyanMcGreal on Tuesday March 08, 2011 @08:59PM
(#2303464)
I rarely use for loops in Python. Most of the time I use list comprehensions, which are much more terse and expressive than loops and, at least to me, are easier to parse than map/filter/reduce functions.
[ Parent
| on HN ]
Re:Notes on Haskell: What's Wrong with the For Loop
by KirinDave on Wednesday March 09, 2011 @02:47AM
(#2304238)
Funny, that. List comprehensions are actually sytactically and semantically more difficult than folds, modulo your logic.
Honestly, I suspect the Haskell style and the curious Python cultural disdain for real lambadas have far more to do with your confort than any absolute metric of comprehension.
Re:Notes on Haskell: What's Wrong with the For Loop
by skm on Wednesday March 09, 2011 @04:13AM
(#2304368)
Anyone who has disdain for real lambadas just doesn't know what they're missing:
http://www.youtube.com/watch?v=5AfTl5Vg73A