in reply to I prefer my indexes to start at:
If it starts at 1 it's an item number, not an item index (which starts at 0). Adopting index/number as a distinguishing nomenclature for the two cases has saved a lot of confusion at $work (ignoring the convention on the other hand has caused a lot of confusion and wasted time).
Any other base number gets the appellation "mistake", although there are some places where a non 0 or 1 base can help clean unusual code up considerably.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I prefer my indexes to start at:
by BillKSmith (Monsignor) on Sep 13, 2022 at 14:48 UTC |