
25 Mar
2009
25 Mar
'09
3:11 a.m.
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 -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/