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

Home » Public Forums » archive » name a variable with number
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: name a variable with number [message #87461 is a reply to message #87459] Tue, 04 February 2014 10:07 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rjp23@le.ac.uk writes:

> If anyone feels the inclination to cover this in more detail it'd be appreciated as I find myself using it quite often, normally as a shortcut to repeating the same thing over and over.

I think we are all confused about how hard-coding more variable names
can be a shortcut to doing *anything* over and over again. It seems to
me to be the *last* thing you would want to do. Doing things over and
over again are exactly what arrays and lists are good for.

Giving things names may be good for the soul (In the beginning was the
Word, and the Word was with God, etc.), but doing it in a program just
seems crazy. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: accessing IDL internal (aka "built-in") routines
Next Topic: Error using data structures while reading ASCII file with different data types

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

Current Time: Wed Oct 08 19:31:01 PDT 2025

Total time taken to generate the page: 0.00482 seconds