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: [email protected]
For additional commands, e-mail: [email protected]