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

There are many situations where 1-based indexing is more natural. There are also many situations where 0-based indexing is more natural. And also many (possibly most?) situations, where it doesn't really matter.

My 2 cents: it isn't really that important. As long as the developer is aware of whether the language they are currently using 0 or 1 based indexing.






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

Search: