News for hackers. Stuff that matters.
Re:Why Python uses 0-based indexing. It's because of slices by agrona on Wednesday October 23, 2013 @05:53PM (#6602000)
FORTRAN and Algol60 are also not-0-indexed.

From the exple.tive.org page Guido links to:

> On top of that other languages that antedate BCPL and C aren’t zero-indexed. Algol 60 uses one-indexed arrays, and arrays in Fortran are arbitrarily indexed – they’re just a range from X to Y, and X and Y don’t even need to be positive integers.

It was actually a pretty interesting read, I recommend it if you have the time.

There are no comments on this comment yet.