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

I have to confess that this EWD on 0-1 indexing is one of my pet peeves. Whenever the topic comes up, someone will invariably link to it uncritically, even though Djikstra's argument is biased in favor of 0-based indexing.

For example, he talks about how (a < i ≤ b) is unnatural, but then fails to mention that this happens with 0-based indexing when we have to iterate backwards.



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

Search: