In my experience, it depends on the context. Usually I can determine if something is an index of what it is used for, so I am often more interested in knowing that it is an index.
:
(: ), , , , , - , i.
:
for (int i = 0; i < height; i++ ) {
for (int j = 0; j < width; j++) {
if (image[i][j] < 128) {
image[i][j] = 0;
} else {
image[i][j] = 255;
}
}
}
, , :
File[] files_in_dir = ...;
int num_files = files_in_dir.length();
for (int fileIdx = 0; fileIdx < num_files; fileIdx++) {
...
}
, , , , :
int imageToDeleteIdx = 3;
image_list.delete(imageToDeleteIdx);
" , ", ; i.e.: , . , , , . , .