Ragdoll X@sh.itjust.works to Programmer Humor@programming.dev · edit-21 day agoif 1: return Truesh.itjust.worksimagemessage-square24fedilinkarrow-up1572file-text
arrow-up1572imageif 1: return Truesh.itjust.worksRagdoll X@sh.itjust.works to Programmer Humor@programming.dev · edit-21 day agomessage-square24fedilinkfile-text
minus-squarekubica@fedia.iolinkfedilinkarrow-up1·17 hours 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·15 hours 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.