3 ms·
If 0-indexing hadn't been the default for so many programmers for so many years (usually because the languages being used required actually thinking about array
by psychometry 6y ago
If 0-indexing hadn't been the default for so many programmers for so many years (usually because the languages being used required actually thinking about arrays in terms of memory offsets) then it would feel very odd. Humans reason about counting in terms of the natural numbers, so 1-indexing is fine. Just ask any beginner CS student what they think of 0-indexing if you doubt this.