[Haskell-cafe] about Haskell code written to be "too smart"
Lutz Donnerhacke
lutz at iks-jena.de
Tue Mar 24 17:18:05 EDT 2009
* 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
Composition of library functions is usually much more readable than hand
written recursion, simply because the typical idiom is highlighted instead
of checking yourself, that there is no strange matching against the obvious
case.
Composition of library functions is usually much more efficient and
preferable than hand written recursion, simply because the fine tuned fusion
capabilities.
More information about the Haskell-Cafe
mailing list