HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 10 months agoI have a 64-bit genderlemmy.mlimagemessage-square26fedilinkarrow-up1267arrow-down132
arrow-up1235arrow-down1imageI have a 64-bit genderlemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 10 months agomessage-square26fedilink
minus-squaresteventhedev@lemmy.worldlinkfedilinkarrow-up37·10 months agoClearly your gender field is a boolean. Which means it can be either true, false, null, or undefined. Except in javascript where for some reason it can sometimes be NaN, but only when you try to compare two people.
minus-squareArtyom@lemm.eelinkfedilinkarrow-up4·10 months agoA boolean, so 8 bits of freedom to fill up
Clearly your gender field is a boolean. Which means it can be either true, false, null, or undefined. Except in javascript where for some reason it can sometimes be NaN, but only when you try to compare two people.
A boolean, so 8 bits of freedom to fill up