Re:Edsger Dijkstra's note on starting array indices at 0 (pd...
by danssig on Wednesday June 22, 2011 @05:35AM
(#2682408)
After all the amount of money lost to off-by-one errors (millions? billions? who knows) I have to completely disagree with this. It's workable in C with its pointer arithmetic and other low level bit twiddling but this has no business in a higher level language. I realized how much unnecessary pain I had been suffering the first time I saw the for(;;) loop equivalent in Smalltalk:
1 to: 5 do: [ " ... " ]