Linked by Eugenia Loli on Wed 1st Nov 2006 02:49 UTC
Thread beginning with comment 177594
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: Productivity with Haskell looks great...
by Morin on Wed 1st Nov 2006 20:20
in reply to "RE: Productivity with Haskell looks great..."
> By any means, you should declare your types. The fun part is that
> Haskell actually does that for you. Load GHC in interpreter mode and
> enter :t myFunction, copy the type declaration and paste it into your
> source.
It would be nice if Haskell had more support. In something like Eclipse, you'd "generate type declaration" with two keys...




Member since:
2006-10-11
hashnet: Type inference is great on paper and makes for terseness, granted. However terseness is good for writing programs, not so much for reading code.
Mandatory parameter types serves as documentation.
By any means, you should declare your types. The fun part is that Haskell actually does that for you. Load GHC in interpreter mode and enter :t myFunction, copy the type declaration and paste it into your source. Then, i really suggest that you use inline code and comment to your hearts content.