Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
naasking
20 days ago
|
parent
|
context
|
favorite
| on:
Index, Count, Offset, Size
> Is there any reason to not just switch to 1-based indexing if we could? Seems like 0-based indexing really exacerbates off-by-one errors without much benefit
You'd just get a different set of off-by-one errors with 1-based indexing.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You'd just get a different set of off-by-one errors with 1-based indexing.