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

Manlio Perillo manlio_perillo at libero.it
Tue Mar 24 17:43:01 EDT 2009


Jonathan Cast ha scritto:
> [...]
> 
> I think, in general, the best way to document the purpose of the
> function is
> 
>     -- | Split a function into a sequence of partitions of specified
> lenth
>     takeList :: [Int] -> [a] -> [[a]]
> 

Note that I was not speaking about the best way to document a function.

I was speaking about the best way to write a function, so that it may 
help someone who is learning Haskell.

 > [...]

Manlio


More information about the Haskell-Cafe mailing list