Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have no opinion either way. It really is such a non problem imo.

I can definitely see the reasoning for using 1-based since you really are using cardinals (or ordinal or whatever). This is made maybe most clear looking at Haskell or other FP langs that usually have fst & snd functions.

At the same time, I could also see an array as sort of a map between ints and a obj in the array. This would allow for any number to be used there and why not just start with 0 then, since that is the "default" / first defined value of an int.

Actually haven't read Dijkstra's take on it. Will go do that.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: