codeinabox@programming.dev to Programming@programming.devEnglish · 13 hours agoI keep tripping over “true, false, true”allthingssmitty.comexternal-linkmessage-square23fedilinkarrow-up147
arrow-up147external-linkI keep tripping over “true, false, true”allthingssmitty.comcodeinabox@programming.dev to Programming@programming.devEnglish · 13 hours agomessage-square23fedilink
minus-squareTraister101@lemmy.todaylinkfedilinkarrow-up2·3 hours agoRight cause the boolean isn’t a named type. If you have two possible states that can be represented with a boolean, or an enum of the two possible states which embeds more info into the callsite
Right cause the boolean isn’t a named type. If you have two possible states that can be represented with a boolean, or an enum of the two possible states which embeds more info into the callsite