codeinabox@programming.dev to Programming@programming.devEnglish · 21 days agoI keep tripping over “true, false, true”allthingssmitty.comexternal-linkmessage-square28linkfedilinkarrow-up164arrow-down11cross-posted to: [email protected]
arrow-up163arrow-down1external-linkI keep tripping over “true, false, true”allthingssmitty.comcodeinabox@programming.dev to Programming@programming.devEnglish · 21 days agomessage-square28linkfedilinkcross-posted to: [email protected]
minus-squareTraister101@lemmy.todaylinkfedilinkarrow-up3·20 days 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