[Haskell-cafe] Re: Signature of a function

Aaron Denney wnoise at ofb.net
Tue Jan 11 19:31:29 EST 2005

On 2005-01-11, Keith Wansbrough <Keith.Wansbrough at cl.cam.ac.uk> wrote:
> Daniel Fischer writes:
>> One might replace type signatures with comments, of course, and so convey 
>> better information, but that is more work, hence we poor ignorants will 
>> settle for signatures.
> You mean one might add comments _as well as_ type signatures, of
> course.  The only thing worse than no comment is an incorrect comment.
> At least type signatures are verified by the compiler, and cannot lie.

Nah, useless comments are also worse than no comments, as they make
people think there are useful comments, which prevents useful ones from
being written.  Better than wrong comments, as it's easier to tell that
you should ignore them.

Aaron Denney

More information about the Haskell-Cafe mailing list