News for hackers. Stuff that matters.
Re:What it's like to use Haskell by ufo on Wednesday March 26, 2014 @12:21PM (#7474454)
> eg. a fold instead of explicit recursion

Wouldn't adding some bangs in the patterns kind of do the same thing as using foldl'?

Re:What it's like to use Haskell by AaronFriel on Wednesday March 26, 2014 @02:16PM (#7475223)
Yes. Most recommendations for implementing recursion in Haskell that I've seen have amounted to writing it in terms of folds. You gain the benefit of experts vetting the code, and novices being able to understand what it is doing it a glance.