logoalt Hacker News

Fraterkesyesterday at 12:23 PM1 replyview on HN

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.


Replies

meindnochyesterday at 12:56 PM

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.