logoalt Hacker News

ebb_earl_cotoday at 2:50 PM1 replyview on HN

Lots of (most?) programming languages are 0-indexed so it feels natural for software developers and our ilk.


Replies

SoftTalkertoday at 4:54 PM

Not really. 0-based indexing is different from counting and starting with 0 in a counting context is weird. Would you ever say a set has zero elements when it actually contains a single element?