commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: [ALL] Is that 1 or l or I ?
Date Thu, 15 Mar 2012 04:40:23 GMT

On Mar 14, 2012, at 10:14 AM, Emmanuel Bourg wrote:

> Le 14/03/2012 18:11, sebb a écrit :
> 
>> Sometimes single char names are clearer.
>> E.g. in for loops, using i and j is such a common idiom that renaming
>> won't necessarily improve readability.
> 
> Same thing for x and y as coordinates.

I doubt anyone would make a mistake seeing x and y.  

But 

int I = 1;
int l = 2;

int amt = I + 1;

would make me very upset.

however, that isn't the same as 

for (int i=0; i <  100; ++i) {
	….
}

Ralph


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message