|
|
|
I agree with part of what John said.
I do think that it should be changed to 0 because that is consistent with Ruby and most other programming languages out there. But I think having a flag of some type or something to of this nature would help people that aren't ready to go back and make changes to their existing code. I would love to see it changed to 0-base.
Even though I have well over 10,000 lines of code in various projects, I would only be using the newer version in relatively new projects, even if I had to go back and change things from before it would probably not be very difficult. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If the index was changed from what it currently is LOTS of things are going to break. If this this is put in i would request it be some kind of flag (ie.zero_based_index = yes) or something along those lines. I'm sitting on about 6 thousands lines of code in a giant test harness, i tried my best to avoid using index but in some cases I had to. My harness was designed around an 'api' approach, but I still don't want to update it just because.
Just adding some real world experience to the issue.