Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by Anonymous Monk
on Feb 28, 2002 at 21:31 UTC ( #148387=note: print w/ replies, xml ) Need Help??


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

It is funny to see people telling Biker not to use var names
like $a and $b, they should pass that advice on to Larry Wall or
who ever decided to use $a and $b with sort!


Comment on Re: use strict won't require explicit name for all variables?
Re: Re: use strict won't require explicit name for all variables?
by demerphq (Chancellor) on Feb 10, 2003 at 19:57 UTC
    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....

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2014-07-29 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (227 votes), past polls