On Aug 7, 2010, at 5:24 PM, Nobody wrote:
On Sat, 07 Aug 2010 13:48:32 +0200, News123 wrote:
"Common sense" is wrong. There are many compelling advantages to
numbering from zero instead of one:
http://lambda-the-ultimate.org/node/1950
It makes sense in assembly language and even in many byte code
languages.
It makes sense if you look at the internal representation of unsigned
numbers (which might become an index)
It also makes sense mathematically. E.g. for an MxN array stored as a
1-dimensional array, the element a[j][i] is at index
j * N + i
Nice example!
--
http://mail.python.org/mailman/listinfo/python-list