News for hackers. Stuff that matters.
Re:Why do arrays start at 0? by lupire on Wednesday August 24, 2022 @03:36PM (#32584652)
Nope.

Is the empty set countable? (Yes.)

Dictionary:

nat·u·ral num·bers

  the positive integers (whole numbers) 1, 2, 3, etc., and sometimes zero as well

Countable: https://en.wikipedia.org/wiki/Countable_set

Set theory:

https://en.wikipedia.org/wiki/Ordinal_number

Re:Why do arrays start at 0? by atwood22 on Wednesday August 24, 2022 @04:05PM (#32585046)
From your own link on countable sets:

> Equivalently, a set S is countable if there exists an injective function f : S → N from S to N; it simply means that every element in S corresponds to a different element in N.

Defining N is usually done via a successor set, on which case 0 makes no sense to include.

Re:Why do arrays start at 0? by lupire on Wednesday August 24, 2022 @07:05PM (#32587038)
A successor set is the set of successors of... 0 or 1, depending on what you are doing.