The main examples to me are timekeeping, modular arithmetic, and memory addressing. The first moment of time, the first modulus and the first memory address are all 0. It seems harder to come up with natural examples where the first something is 1.
Your problem would be solved by using half-open ranges everywhere, which is another good idea that works well with mine.
The main examples to me are timekeeping, modular arithmetic, and memory addressing. The first moment of time, the first modulus and the first memory address are all 0. It seems harder to come up with natural examples where the first something is 1.
Your problem would be solved by using half-open ranges everywhere, which is another good idea that works well with mine.