W3C home > Mailing lists > Public > www-validator@w3.org > October 2008

Re: checklink: local variable names

From: Ville Skyttä <ville.skytta@iki.fi>
Date: Wed, 8 Oct 2008 20:07:08 +0300
To: www-validator@w3.org
Message-Id: <200810082007.09322.ville.skytta@iki.fi>

On Tuesday 30 September 2008, Michael Ernst wrote:
> It's poor style for local variables to shadow existing variables -- that
> is, to reuse the same variable name in a smaller scope.  This patch
> corrects a few such problems in checklink.

I agree that it's a style issue, but in this case it is actually intentional.  
The longish term plan is to get rid of as many global scope things as 
possible, and rename the remaining ones that cannot be eliminated, if any.  
When this plan starts to become reality, these issues get sorted 
out "properly" - I don't think it'd be good to make cosmetic changes that 
we'd probably want to revert later meanwhile, such as this one.
Received on Wednesday, 8 October 2008 17:07:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:10 UTC