Re: 0-based Indexing

new topic     » goto parent     » topic index » view thread      » older message » newer message

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...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu