HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by spullara | Hacker News Reader
Parent
Full thread
spullara
·
0 is offset based. 1 is index based.
View on HN
thetwentyone
·
This is my take and when working directly with computer memory/addresses, 0-based is most convenient. For working with data/stuff at a higher level, 1-based is more natural and convenient.
Reply on news.ycombinator.com