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?

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....