andioop@programming.dev to Programming Horror@programming.devEnglish · edit-22 years agoGod I wish there was an easier way to do thisprogramming.devexternal-linkmessage-square24fedilinkarrow-up13arrow-down10
arrow-up13arrow-down1external-linkGod I wish there was an easier way to do thisprogramming.devandioop@programming.dev to Programming Horror@programming.devEnglish · edit-22 years agomessage-square24fedilink
minus-squareNullPointer@programming.devlinkfedilinkarrow-up1·2 years agohere is somewhat less: return (number % 2) == 0;
here is somewhat less:
return (number % 2) == 0;
return !(number & 1);