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

My experience is the exact opposite.

I find 1-based indexing to be weird/illogical and prone to off-by-1 errors.

Inclusive/exclusive ranges as in Python along with 0-based indexing means the likelihood of any off-by-1 is negligible...



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

Search: