jroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoknow the features of your languagelemmy.worldimagemessage-square110fedilinkarrow-up1624arrow-down124
arrow-up1600arrow-down1imageknow the features of your languagelemmy.worldjroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square110fedilink
minus-squareKairuByte@lemmy.dbzer0.comlinkfedilinkarrow-up8arrow-down1·1 year 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.