4 ms·
That’s utterly unconvincing. Zero-based indexing makes sense only in light of the underlying mechanics of memory address offsets (which, IIRC, isn’t even how e
by thanatropism 7y ago
That’s utterly unconvincing.
Zero-based indexing makes sense only in light of the underlying mechanics of memory address offsets (which, IIRC, isn’t even how eg C literally works). Natural numbers are counting numbers. It makes “more sense” that a sequence up to N contains N numbers, that is, its members can be put in a bijection with {1,...,N}
These are all conventions, of course. But the latter convention has a finer pedigree.