comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Parameters for Dummies
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Parameters for Dummies [message #30978 is a reply to message #30972] Fri, 31 May 2002 11:11 Go to previous messageGo to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
David Fanning <david@dfanning.com> writes:

> Sean Raffuse (sean@me.wustl.edu) writes:
>
>> is there any time when I should really be using a positional parameter
>> instead of a keyword parameter? The more I do, the less I see why a
>> positional parameter would ever be better. Yet, I'm sure they're there for
>> a reason. Please enlighten me, oh most wise discussion group.

> Here is a loose rule of thumb: Positional parameters are
> for *required* parameters. Keyword parameters are for
> everything else.

I second that.

I've encountered IDL software where the developer decided to make EVERY
parameter a keyword parameter, even the required ones that you have to enter in
every time. I found all that typing quite a pain. (On the other hand, I also
remember the bad old days, before IDL keywords were invented, and all
parameters were positional, even if you had twenty of them!)

William Thompson
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL 5.5 "% Temporary variables" messages
Next Topic: bwfill in IDL?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 13:07:18 PDT 2025

Total time taken to generate the page: 1.36105 seconds