in reply to Re: Re: Re: use strict won't require explicit name for all variables?
in thread use strict won't require explicit name for all variables?
<OPINION>
Problem or not problem. I consider the usage of certain variable names as 'special' variables a problem.
Will $nbr be used as a special variable one day? Or what about $i if we stick to one character names? (Wonder how many scripts would be broken by that last one.)
OK, so $a and $b were both there before me, but how am I to know? How am I to know that I need to read up on sort to know that they exist?
I admit that there are $_ and many other 'special' variables and I use them on a daily basis. But they look different and I instinctively don't use those names as my working variables. With $a and $b I have to explicitly be aware of their special behavior/existence or else devine their existence which is very far from intuitive.
But that is, of course, just an opinion. ;-)
</OPINION>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(re:x5 use strict....)$a and $b should be in perlvar
by demerphq (Chancellor) on Feb 28, 2002 at 11:24 UTC | |
by little (Curate) on Feb 28, 2002 at 12:21 UTC | |
by demerphq (Chancellor) on Feb 28, 2002 at 12:35 UTC | |
by clintp (Curate) on Feb 28, 2002 at 12:54 UTC | |
by demerphq (Chancellor) on Feb 28, 2002 at 13:45 UTC | |
| |
by little (Curate) on Feb 28, 2002 at 12:47 UTC | |
by demerphq (Chancellor) on Feb 28, 2002 at 13:37 UTC |