@WoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml • 2 years agoI hate JavaScript so muchlemm.eeimagemessage-square115fedilinkarrow-up1804arrow-down158
arrow-up1746arrow-down1imageI hate JavaScript so muchlemm.ee@WoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml • 2 years agomessage-square115fedilink
minus-square@outdated_belated@lemmy.sdf.orglinkfedilink7•2 years agoWow, they found something even more confusing than 1-indexing (conditional 1-indexing)
minus-squareandrewlinkfedilink5•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.