News for hackers. Stuff that matters.
Re:Why do arrays start at 0? by lupire on Wednesday August 24, 2022 @03:50PM (#32584830)
If I care about apples (for my lunch, or my store), I care about the difference between having 0 of them and not having bothered to count yet.

0!=null

Re:Why do arrays start at 0? by randomdata on Wednesday August 24, 2022 @04:18PM (#32585205)
If no apples is the unusual state, like you expected to find an apple in your lunchbox but someone ate it without your knowledge, then certainly there would be reason to communicate the no apples state. It is ignored in communication when it does not provide useful information, but it is not forgotten. The 0th index is implicitly there.
Re:Why do arrays start at 0? by anigbrowl on Wednesday August 24, 2022 @04:35PM (#32585381)
Come to the infinity store - we literally sell everything! (some items may be out of stock)
Re:Why do arrays start at 0? by randomdata on Wednesday August 24, 2022 @04:48PM (#32585540)
Yes, the infinite state is also implicitly found within the state set. Conveniently found at the infinity index.