POV-Ray : Newsgroups : povray.off-topic : All bow to the mighty Python : Re: All bow to the mighty Python Server Time
4 Sep 2024 19:24:41 EDT (-0400)
  Re: All bow to the mighty Python  
From: Orchid XP v8
Date: 21 Apr 2010 14:11:02
Message: <4bcf3fb6@news.povray.org>
>>> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.