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