3 ms·
> It's not the 0th element. It is the 1st element and has an offset of 0 from the beginning of the array. This is why I think the terminology should be "indexe
by wwweston 8y ago
> It's not the 0th element. It is the 1st element and has an offset of 0 from the beginning of the array.
This is why I think the terminology should be "indexed arrays" and "offset arrays" (and variables perhaps even called index/idx/i or offset/ofst/o as appropriate) instead of using the terms "0-indexed" or "1-indexed."
But I have a hard enough time getting out of the habit myself, and some people are going to hate using o as a variable, so....