[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: [ID 20000111.008] use strict 'vars'



You forgot a lot of other globals, like $STDIN and %ARGV.

>then spit out a warning saying $a $b has been deprecated,
>all code will still run, but occurences of $a $b in sort routines
>will be quickly rooted out by the warning messages.

If we want to rewrite Perl, fine.   Failing that, not fine.

>I'd guess there are 20 *.pm files in the perl distribution 
>that would need to be updated so that their sort routines 
>use the new hieroglyph. I could go through them and change 
>all $a $b to their new hieraglyph in a couple of days, part time. 

Those twenty files are irrelevant.  You cannot expect to 
be able to go around CHANGING EVERYBODY ELSE'S CODE.  And 
that is where my concern resides.  It is not in the code
in the distribution, about which I couldn't care one whit less. 

>why the outrage?

Because it is arrogant to make these high-and-mighty decisions
about how people "should" be programming just so that they'll
conform to *your* puritanical maxims.  

I have a much better idea: go learn what $a and $b are for in sort
routines.  I'm sure you'll find that to be much easier than changing
the world.  

THOU SHALT NOT SCREW WITH EXISTING CODE.

--tom


References to:
london@pixelmagic.com

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]