Re:The origin of zero-based array indexing
by adamnemecek on Tuesday December 10, 2013 @03:29AM
(#6879604)
That sure is a lot of words to say 'because indices are memory offsets'.
[ Parent
| on HN ]
Re:The origin of zero-based array indexing
by thepicard on Tuesday December 10, 2013 @04:03AM
(#6879687)
Because it's more than that. It wasn't originally to speed up run time, but compile time. That history is wildly fascinating to me. We tend to take compile time for granted, unless we are bitching about Scala, or compiling C++ at Google.
The author also addresses the importance of history. Voodoo knowledge _does_ pervade modern computer science, and I for one am happy to see something different.
Re:The origin of zero-based array indexing
by stinos on Tuesday December 10, 2013 @04:09AM
(#6879704)
Because it's more than that
But is it really? I'm inclined towards anonymouz's and adamnemecek's idea here: Dr Richard clearly says indices are offsets, no? It's nice the author gets all sentimental about it, but that doesn't make him right.