Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: use strict won't require explicit name for all variables?

by demerphq (Chancellor)
on Feb 10, 2003 at 19:57 UTC ( #234223=note: print w/ replies, xml ) Need Help??


in reply to Re: use strict won't require explicit name for all variables?
in thread use strict won't require explicit name for all variables?

Presumably it was a decision to optimize the common case. Most programmers wont name variables things like $a and $b just cause single letter variables are bad practice. (Although $i, $j, $k, and $x, $y, $z have a looong tradition of being used in computer programming and mathematics so generally speaking they are exempted from the "use descriptive variable names" advice) Otoh _some_ name was needed for the variables that would be used by sort, and since they would probably be used a lot, and since a good descriptive short name for them isnt exactly obvious I think the decision was the right one.

--- demerphq
my friends call me, usually because I'm late....


Comment on Re: Re: use strict won't require explicit name for all variables?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://234223]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-12-22 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls