Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The crucial fact is that if your language supports 0-indexing, you can do that if you like. OR, you can pretend it has 1-indexing, and do that instead.

If your language doesn't support zero-indexing, then you are stuck with 1-indexing, and that's that.

So, zero-indexing is the natural thing to put in a language, as it accommodates everybody.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: