jroid8@lemmy.world to Programmer Humor@lemmy.ml · 2 years agoknow the features of your languagelemmy.worldimagemessage-square38fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1imageknow the features of your languagelemmy.worldjroid8@lemmy.world to Programmer Humor@lemmy.ml · 2 years agomessage-square38fedilink
minus-squareugo@feddit.itlinkfedilinkarrow-up0·2 years agoIf this was cpp, clang-tidy would tell you “do not use else after return” I don’t know how null works in swift, but assuming it coerces to bool I’d write if (a) return a; return b;
If this was cpp, clang-tidy would tell you “do not use else after return”
I don’t know how null works in swift, but assuming it coerces to bool I’d write
if (a) return a; return b;