Re:Why numbering should start at zero (1982)
by once-in-a-while on Thursday December 15, 2016 @02:40PM
(#13187537)
L[2] has nothing to do with "second". It just means "plus 2".
If you consider Monday the first day of the week, then Monday[1] is (naturally) Monday + 1.
Zero indexing just feels right, I can't help it (it's written in our DNA).
[ Parent
| on HN ]
Re:Why numbering should start at zero (1982)
by d0mine on Thursday December 15, 2016 @02:56PM
(#13187693)
In C:
L[2] == *(L + 2) == *(2 + L) == 2[L]
Re:Why numbering should start at zero (1982)
by Avshalom on Thursday December 15, 2016 @02:41PM
(#13187543)
I consider monday the second day of the week
Re:Why numbering should start at zero (1982)
by once-in-a-while on Thursday December 15, 2016 @03:43PM
(#13188205)
Me too (for both historical and religious reasons). I just meant to be "modern friendly" ;)