News for hackers. Stuff that matters.
Re:Why Python uses 0-based indexing. It's because of slices by aiiane on Wednesday October 23, 2013 @06:06PM (#6602062)
Also loops will potentially behave awkwardly, due to the table having shifted into dictionary-esq indexing.
Re:Why Python uses 0-based indexing. It's because of slices by anonymoushn on Wednesday October 23, 2013 @06:22PM (#6602153)
This won't be a big deal. The 0 key will be in the hash part, and the 1-#t keys will be in the array part. The language doesn't expose the distinction, so the loop-related awkwardness is limited to a tiny performance hit.
Re:Why Python uses 0-based indexing. It's because of slices by ufo on Thursday October 24, 2013 @10:39AM (#6605498)
If you try to use ipairs to iterate then it will skip the zero-th index but if you use a numeric for loop (for i=0,N do) then you should be fine.