jroid8@lemmy.world to Programmer Humor · 10 months agoknow the features of your languagelemmy.worldimagemessage-square148fedilinkarrow-up1649arrow-down124
arrow-up1625arrow-down1imageknow the features of your languagelemmy.worldjroid8@lemmy.world to Programmer Humor · 10 months agomessage-square148fedilink
minus-squareKairuByte@lemmy.dbzer0.comlinkfedilinkarrow-up8arrow-down1·10 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.