Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · 2 months agoif 1: return Truesh.itjust.worksimagemessage-square25linkfedilinkarrow-up1616arrow-down122file-text
arrow-up1594arrow-down1imageif 1: return Truesh.itjust.worksRagdoll X@sh.itjust.works to Programmer Humor@programming.dev · 2 months agomessage-square25linkfedilinkfile-text
minus-squarekubica@fedia.iolinkfedilinkarrow-up1·2 months agoThe not so funny thing is that if you try this in scripting languages -1 and 1 are both truthy so…
minus-squareZILtoid1991@lemmy.worldlinkfedilinkarrow-up1·2 months agoBecause you need to infer the fuzzy boolean as a type (I personally plan to make one that works between -127 and 127, on integers instead of floats), and then write an interpreter to use the values accordingly.
The not so funny thing is that if you try this in scripting languages -1 and 1 are both truthy so…
Because you need to infer the fuzzy boolean as a type (I personally plan to make one that works between -127 and 127, on integers instead of floats), and then write an interpreter to use the values accordingly.