Jaromil@fed.dyne.org to Programmer Humor@lemmy.ml · 10 hours agoOff by one solitudefed.dyne.orgimagemessage-square75fedilinkarrow-up1848arrow-down116
arrow-up1832arrow-down1imageOff by one solitudefed.dyne.orgJaromil@fed.dyne.org to Programmer Humor@lemmy.ml · 10 hours agomessage-square75fedilink
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up9arrow-down1·9 hours agoThe 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.
minus-squareaffiliate@lemmy.worldlinkfedilinkarrow-up2·6 hours agoi wonder why people haven’t made a language that starts indexing at 2 yet. maybe some day
minus-squarejaybone@lemmy.worldlinkfedilinkarrow-up2·6 hours agoMaybe this could be a feature in brainfuck or COBOL.
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.
i wonder why people haven’t made a language that starts indexing at 2 yet. maybe some day
Maybe this could be a feature in brainfuck or COBOL.
god i hope so