Re: 0-based Indexing
- Posted by "C. K. Lester" <cklester at yahoo.com> Jul 16, 2003
- 509 views
Derek splained (snippage occurred): > > I don't get it. Why do some languages use 0-based indexing? It's got to be > > the dumbest thing in programming language history. Or maybe not. > > > The index is actually an offset from an address. Okay, I get that... and that's reasonable for the behind-the-scenes data manipulation, but why not hide that detail and use 1-based indexing? Is it that much of a performance issue? Like Greg said, 1-based indexing is more intuitive, easier to read and understand...