Djikstra was so fucking wrong with this and people who parrot this are so annoying.
Sure, an offset starts at zero, but an index can very well start at one. Not all arrays represent a physical offset, please stop pretending your inferior zero only indexing is in any way superior.
Sometimes math is just simpler from one. When you’re translating math to code, one based indexes are usually better.
Djikstra was so fucking wrong with this and people who parrot this are so annoying.
Sure, an offset starts at zero, but an index can very well start at one. Not all arrays represent a physical offset, please stop pretending your inferior zero only indexing is in any way superior.
Sometimes math is just simpler from one. When you’re translating math to code, one based indexes are usually better.
I shall not lower myself to use the newfangled Mathematical inventions of the Arabs and instead keep doing Mathematics like the Romans!
But how will you use zero-indexing without the number zero?
All I hear is nothing-indexing with nothing.
In economics, many indices start at 100.