WoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml · 2 years agoI hate JavaScript so muchlemm.eeimagemessage-square113fedilinkarrow-up1598arrow-down147
arrow-up1551arrow-down1imageI hate JavaScript so muchlemm.eeWoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml · 2 years agomessage-square113fedilink
minus-squareMyNameIsRichard@lemmy.mllinkfedilinkarrow-up9·2 years agoI just remembered option base 0 :-)
minus-squareoutdated_belated@lemmy.sdf.orglinkfedilinkarrow-up5·2 years agoWow, they found something even more confusing than 1-indexing (conditional 1-indexing)
minus-squareandrew@lemmy.stuart.funlinkfedilinkarrow-up5·edit-22 years 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.