WoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml · 1 year agoI hate JavaScript so muchlemm.eeimagemessage-square120fedilinkarrow-up1797arrow-down159
arrow-up1738arrow-down1imageI hate JavaScript so muchlemm.eeWoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml · 1 year agomessage-square120fedilink
minus-squareMyNameIsRichard@lemmy.mllinkfedilinkarrow-up11·1 year agoI just remembered option base 0 :-)
minus-squareoutdated_belated@lemmy.sdf.orglinkfedilinkarrow-up7·1 year agoWow, they found something even more confusing than 1-indexing (conditional 1-indexing)
minus-squareandrew@lemmy.stuart.funlinkfedilinkarrow-up5·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.
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.