Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Fraterkes
10 days ago
|
parent
|
context
|
favorite
| on:
Index, Count, Offset, Size
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
meindnoch
10 days ago
[–]
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.
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: