jroid8@lemmy.world to Programmer Humor@lemmy.ml · 11 months agoknow the features of your languagelemmy.worldimagemessage-square23fedilinkarrow-up112arrow-down10
arrow-up112arrow-down1imageknow the features of your languagelemmy.worldjroid8@lemmy.world to Programmer Humor@lemmy.ml · 11 months agomessage-square23fedilink
minus-squareKairuByte@lemmy.dbzer0.comlinkfedilinkarrow-up2·11 months agoIt’s easier to mess up return a != null ? a : b than it is return a ?? b, and operators work from left to right.
It’s easier to mess up
return a != null ? a : b
than it isreturn a ?? b
, and operators work from left to right.