3 ms·
An index is a specific kind of number, but so is a count. Indexing should clearly start from 0. It leads to far more elegant code and lower risk of off-by-one
by IshKebab 2y ago
An index is a specific kind of number, but so is a count.
Indexing should clearly start from 0. It leads to far more elegant code and lower risk of off-by-one mistakes.