10 ms·
It depends on what you think you're doing. If you are counting, 1-based makes a lot of sense. If you're indexing, they're equally valid approaches. However, if
by Jtsummers 6y ago
It depends on what you think you're doing.
If you are counting, 1-based makes a lot of sense. If you're indexing, they're equally valid approaches. However, if you're indexing then you should be able to use an arbitrary range and not be restricted to one or the other (with a mapping function from your actual range to the language's base).