C
Christopher Benson-Manica
[comp.lang.c] Tor Rustad said:Why people want to focus on an index, I don't get. The important thing
is the object name, i.e. the vector/array/matrix etc. IMO, a single
letter index make a complex constructs/formula far more readable.
It makes it more likely to fit on one line, but I personally find that
readibility is directly proportional to the ratio of letters to
punctuation (up to a certain point, of course). I also find that
variables named "idx" and such clearly identify themselves as loop
control variables; a variable "i" could be anything.
I have sometimes committed the sin of using 'idx', but it doesn't make
much of a difference on bad editors for me, why should we search for an
index really?
To make sure you haven't inadvertently done something silly with it
(as I have done on a regrettable number of occasions).