
24 Mar
2009
24 Mar
'09
10:06 p.m.
On Mar 24, 2009, at 1:51 PM, Manlio Perillo wrote:
But this may be really a question of personal taste or experience. What is more "natural"?
1) pattern matching 2) recursion or 1) function composition 2) high level functions
I think, actually, that one of the fundamental intuitions of (modern) Haskell programming is that recursion should *rarely* be explicit, because the majority of places you'd use recursion all fall into a few different patterns (hence, the proliferation of maps and folds). Once you get those recursive operations firmly embedded in your mind, then combining them becomes much simply, and you can reason about more complex transformations much more easily. -johnnnnnn