|
|
>>> Plus, as you're typing the arguments, it gives you help for each
>>> argument.
>>>
>>> I.e., so you know whether it's radians or degrees expected.
>>
>> Or find out what the hell the order of the argument is...
>
> Yep. Even better than type signatures, when you have three floats in a row.
Yeah, that one's fun. Haskellers tend to define aliases or new types
quite a lot. For example, Filepath is an alias to String, but
writeFile :: Filepath -> String -> IO ()
is more illuminating than just
writeFile :: String -> String -> IO ()
Even so, you do still find type signatures where it's not really obvious
what's what without some real documentation.
The *other* problem is that Haskell libraries tend not to be very
documented. :-(
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|
|