@WoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml • 1 year agoI hate JavaScript so muchlemm.eeimagemessage-square94fedilinkarrow-up1805arrow-down159
arrow-up1746arrow-down1imageI hate JavaScript so muchlemm.ee@WoodlandAlliance@lemm.ee to Programmer Humor@lemmy.ml • 1 year agomessage-square94fedilink
minus-square@outdated_belatedlink7•1 year agoWow, they found something even more confusing than 1-indexing (conditional 1-indexing)
minus-squareandrewlinkfedilink5•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.