[Haskell-cafe] about Haskell code written to be "too smart"

John Melesky list at phaedrusdeinus.org
Tue Mar 24 18:06:04 EDT 2009

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.


More information about the Haskell-Cafe mailing list