2 ms·
My experience is the exact opposite. I find 1-based indexing to be weird/illogical and prone to off-by-1 errors. Inclusive/exclusive ranges as in Python along
by Peaker 15y ago
My experience is the exact opposite.
I find 1-based indexing to be weird/illogical and prone to off-by-1 errors.
Inclusive/exclusive ranges as in Python along with 0-based indexing means the likelihood of any off-by-1 is negligible...