Re: 0-based Indexing
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...
|
Not Categorized, Please Help
|
|