in reply to Re: Why is $. not zero-based?
in thread Why is $. not zero-based?

Actually, we have been thought wrongly to count starting from one, and we should in real life start counting from zero, instead of one.

That's ridiculous. Zero is the number we use prior to counting the first thing in a collection of things. If you are holding an apple in your hand, it doesn't make much sense to say, "I have zero apples in my hand," but it does make sense to say that when your hands are empty.

Indexing arrays is not the same as counting. With arrays it is convenient to think of the index as the number of spaces you need to move from the first one to get the element you need. If you need the first element, you need to move zero spaces. If you need the second element, you need to move one space. Etc. It's only a matter of conceptual convenience that we translate that into thinking of arrays as containing a "0th" element.

-sauoq
"My two cents aren't worth a dime.";