Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jballanc
on Feb 18, 2012
|
parent
|
context
|
favorite
| on:
The Julia Programming Language
With 1-based indexing, length == last index.
Does 0-based indexing have any advantage, beyond ability to do pointer arithmetic with indexes?
scott_s
on Feb 19, 2012
[–]
In 0-based indexing, n % length is a value inside the range.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Does 0-based indexing have any advantage, beyond ability to do pointer arithmetic with indexes?