you are viewing a single comment's thread
view the rest of the comments
[–] 17 points 2 years ago (2 children)

Wouldn't it be nice if documentation used the words index and offset consistently?

  • source
  • hideshow 4 child comments
  • [–] 10 points 2 years ago (1 child)

    The problem is that they both are contextual and can mean any position in a list/array. The starting index or starting offset is generally zero, but could be one, depending on the language used.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 2 years ago (2 children)

    i wonder why people haven’t made a language that starts indexing at 2 yet. maybe some day

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 2 years ago (2 children)

    Aren't those two the same thing? At least in C-style arrays, which might not be how they're handled under the hood, but is at least how most languages present it to the programmer.

  • source
  • parent
  • hideshow 4 child comments