You are viewing a single thread.
View all comments View context
10 points

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.

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
2 points

Dreamberd starts array indexing at -1 instead of 0 or 1.

https://github.com/TodePond/DreamBerd

permalink
report
parent
reply
1 point

what a beautiful language

permalink
report
parent
reply
4 points

Maybe this could be a feature in brainfuck or COBOL.

permalink
report
parent
reply
2 points

god i hope so

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.8K

    Monthly active users

  • 802

    Posts

  • 7.4K

    Comments

Community moderators