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

Fundamentally, CPUs use 0-based addresses. That's unavoidable.

We can't choose to switch to 1-based indexing - either we use 0-based everywhere, or a mixture of 0-based and 1-based. Given the prevalence of off-by-one errors, I think the most important thing is to be consistent.



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

Search: