Shamelessly stolen from Reddit. No source in the original post.

  • FreshLight
    link
    fedilink
    27
    edit-2
    8 months ago

    I’ve heard a lot of arguments in favour of starting at 1 and as a “start at 0” person, I’m starting to question my beliefs and am as confused as I was at 3 am when I saw my cat piss from inside her litter box onto the parquet flooring and then slip on it.

    • @marcos@lemmy.world
      link
      fedilink
      128 months ago

      Indexing by zero has a huge positive impact on the correctness of complex operations like joining intervals, that nobody trusts themselves to write anyway and always pack behind a well-verified library.

      But I think the reason we have it is because C maps it almost immediately into memory offsets.

    • @mkwt@lemmy.world
      link
      fedilink
      68 months ago

      Like any other convention, it’s not really a big deal either way. Fortran gets along just fine with 1-indexing.