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

Erik de Castro Lopo mle+hs at mega-nerd.com
Tue Mar 24 23:11:50 EDT 2009

Jake McArthur wrote:

> Richard O'Keefe wrote:
> > May I suggest that the most important thing missing from
> > all these versions of the function is a comment?
> > Most of the time I shouldn't *care* how the function works.
> > (And that, for me, is one of the key benefits of Haskell.)
> Although in this case, a proper name and type signature is probably 
> enough. :)

I trust type signatures much more than comments because I
know the compiler actually verifies the type signature.

Erik de Castro Lopo

More information about the Haskell-Cafe mailing list