Re:The origin of zero-based array indexing
by tg3 on Tuesday December 10, 2013 @09:33PM
(#6885509)
As another commenter pointed out, it's only the indices that are one-based. I think it would look something like this:
Off the top of my head, this has a number of benefits in higher level languages. For instance in Javascript, here are some common inconveniences caused by zero-based indices:
and if we lived in a one-based world, here's what they would look like:
[ Parent
| on HN ]
There are no comments on this comment yet.