Re:Notes on Haskell: What's Wrong with the For Loop
by sqrt17 on Wednesday March 09, 2011 @04:47AM
(#2304413)
For the WTF kind of operation, 'while' loops are much more idiomatic - generally, you'd want to use a for loop for things that are minimally recursive (i.e., where you can see, before starting the loop, that the loop body will be executed N, or len(L), or whateverNumberItIs times).
[ Parent
| on HN ]
There are no comments on this comment yet.