HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 11 个月前I have a 64-bit genderlemmy.mlimagemessage-square35linkfedilinkarrow-up1323arrow-down135cross-posted to: programmerhumor@lemmy.worldprogrammerhumor@lemmy.ml
arrow-up1288arrow-down1imageI have a 64-bit genderlemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 11 个月前message-square35linkfedilinkcross-posted to: programmerhumor@lemmy.worldprogrammerhumor@lemmy.ml
minus-squaresteventhedev@lemmy.worldlinkfedilinkarrow-up44·11 个月前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.
minus-squareNat (she/they)@lemmy.blahaj.zonelinkfedilinkarrow-up14·11 个月前My gender is { toString: ()=>{String.prototype.toString = ()=>">:3"; return ":3";} }
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.
My gender is
A boolean, so 8 bits of freedom to fill up