Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by Anonymous Monk
on Feb 28, 2002 at 21:31 UTC ( [id://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!

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://148387]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found