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:21:26 EDT (-0400)
  Re: All bow to the mighty Python  
From: Darren New
Date: 21 Apr 2010 12:10:26
Message: <4bcf2372$1@news.povray.org>
Invisible wrote:
> Darren New wrote:
> 
>> 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.

Or it makes it easy to figure out you can do something like
   Color newcolor = new Color(oldcolor, newalpha)
and see that there's an overload for constructing a color out of the RGB of 
one color and a specific alpha value.

(And no, the "new" is syntactic noise there - it doesn't allocate anything 
on the heap.)

-- 
Darren New, San Diego CA, USA (PST)
   Linux: Now bringing the quality and usability of
   open source desktop apps to your personal electronics.


Post a reply to this message

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