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

I think that many obo errors are caused by common situations where people can mistakenly mix up index and count. You could eliminate a (small) set of those situations with 1-based indexing: accessing items from the ends of arrays/lists.
 help



And in turn you'd introduce off by one errors when people confuse the new 1-based indexes with offsets (which are inherently 0-based).

So yeah, no. People smarter than you have thought about this before.




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

Search: