Women in Technology

Hear us Roar



Article:
  What I Hate About Your Programming Language
Subject:   C, C++, Java, maybe others - zeroth element arrays
Date:   2003-05-14 07:32:21
From:   anonymous2
Response to: C, C++, Java, maybe others - zeroth element arrays

Zero-based indexing isn't so bad. If you MUST, you can alwas use enumerated indexing, or fake enumerated indexing with some constant definitions.


And, for things like 'cron,' the zeroth day of the week is Sunday. :-)


Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • C, C++, Java, maybe others - zeroth element arrays
    2003-05-14 09:33:22  anonymous2 [View]

    My point was that to think about the thing in a way that is consistent with the tangible world I am forced to treat the concept of zero as something other than zero.

    If you're counting your children, which one is the zeroth kid?

    Bending the humans to the machine, rather than bending the machine to the humans. Bad approach, IMHO.