Most humans wouldd never write the word first
followed by ()
. It absolutely should have been zeroth()
, and would not cause any confusion amongst anyone who needed to write it.
Most humans wouldd never write the word first
followed by ()
. It absolutely should have been zeroth()
, and would not cause any confusion amongst anyone who needed to write it.
Of course—that’s why we have such classics as
stristr()
,strpbrk()
, andstripos()
. Pretty obvious what the differences are there.But to your point, the ‘intuitive’ counterpart to ‘zeroth’ is the item with index zero. What we have is a mishmash of accurate and colloquial terms for the same thing.