WoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml · 1 year agoI hate JavaScript so muchlemm.eeimagemessage-square108fedilinkarrow-up1757arrow-down156
arrow-up1701arrow-down1imageI hate JavaScript so muchlemm.eeWoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml · 1 year agomessage-square108fedilink
minus-squarejoel_anderson@lemmy.worldlinkfedilinkarrow-up7·1 year agoAll I remember about vbscript was that array indexes started at 1.
minus-squareMyNameIsRichard@lemmy.mllinkfedilinkarrow-up8·1 year agoI just remembered option base 0 :-)
minus-squareoutdated_belated@lemmy.sdf.orglinkfedilinkarrow-up6·1 year agoWow, they found something even more confusing than 1-indexing (conditional 1-indexing)
minus-squareandrew@lemmy.stuart.funlinkfedilinkarrow-up4·edit-21 year agooption base 42 Sadly, per the syntax docs on O’Reilly it doesn’t look like it can be anything but 0 or 1. That’s not to say it’s a good feature, but at least make it fun if it’s gonna be bad.
All I remember about vbscript was that array indexes started at 1.
I just remembered
option base 0
:-)Wow, they found something even more confusing than 1-indexing (conditional 1-indexing)
option base 42
Sadly, per the syntax docs on O’Reilly it doesn’t look like it can be anything but 0 or 1. That’s not to say it’s a good feature, but at least make it fun if it’s gonna be bad.