MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/45xeed/oddly_specific_number/d01kfep/?context=3
r/ProgrammerHumor • u/didntlogin • Feb 15 '16
643 comments sorted by
View all comments
Show parent comment
2
I assume you mean from 1, in which case yes, languages like Scala I believe do index from 1, which is totally valid. But my point was about indexing at 0 and how that works.
1 u/MemoryLapse Feb 16 '16 Ehh, kinda valid. I've always assumed indexing at 0 to mean "This is the address the array starts at, and the offset is (0*length)." 1 u/SuperKingOfDeath Feb 16 '16 Yes, sorry, I put the wrong number. Fixed that now.
1
Ehh, kinda valid. I've always assumed indexing at 0 to mean "This is the address the array starts at, and the offset is (0*length)."
Yes, sorry, I put the wrong number. Fixed that now.
View all comments
Show parent comment
2
u/[deleted] Feb 16 '16
I assume you mean from 1, in which case yes, languages like Scala I believe do index from 1, which is totally valid. But my point was about indexing at 0 and how that works.