[Tutor] Not Really Questions

Danny Yoo dyoo at hkn.eecs.berkeley.edu
Mon Jun 5 16:15:31 CEST 2006



On Sun, 4 Jun 2006, John Connors wrote:

> The first one is lists... I can't for the life of me understand why a 
> list starts at zero. In everything else in life other than programming 
> the 1st item in a list is always 1.

Edsger Dijkstra wrote a technical note on why zero is a more natural 
starting point:

     http://www.cs.utexas.edu/users/EWD/ewd08xx/EWD831.PDF

Also, programming is one of those fields where appreciating the null case 
can be advantageous.


More information about the Tutor mailing list