|
|
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
|
|