- Subject: Re: [slang-users] advantage of $1 over a variable
- From: Michael Noble <mnoble@xxxxxxxxxxxxx>
- Date: Thu, 23 Jun 2005 10:02:41 -0400
> I ask myself often, what is the advantage of $1 or $2 (and so on) over a
> real variable with a name? Is there any?
Functionally, I don't think so. Syntactically, perhaps a little.
For example, I find myself using them in system-oriented scripts or
"rc" files, like for resetting load or import paths, mainly for the
convenience of avoiding explicit variable declarations or setting
_auto_declare=1. It helps keep short-ish scripts slightly shorter.
Regards,
-Mike
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]