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

Manlio Perillo manlio_perillo at libero.it
Tue Mar 24 17:59:31 EDT 2009


Erik de Castro Lopo ha scritto:
> Manlio Perillo wrote:
> 
>> I was speaking about the best way to write a function, so that it may 
>> help someone who is learning Haskell.
> 
> I've been learning Haskell for about 3 months.
> 
> I think its a mistake to write code so that its easy for someone
> learning Haskell to read it. Code should be written to be easily
> read by other experienced users of the langauge.
> 

Note that to write code so that its easy to read, does not mean rewrite 
the code as I did in the example.

It also means to add good comments, in the right places.

> Erik

Manlio


More information about the Haskell-Cafe mailing list