guber@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.world · 5 months agoproportional reactionlemmy.blahaj.zoneimagemessage-square24linkfedilinkarrow-up1119cross-posted to: onehundredninetysix@lemmy.blahaj.zone
arrow-up1119imageproportional reactionlemmy.blahaj.zoneguber@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.world · 5 months agomessage-square24linkfedilinkcross-posted to: onehundredninetysix@lemmy.blahaj.zone
minus-squarethebestaquaman@lemmy.worldlinkfedilinkarrow-up3·5 months agoIf there’s more than two branches in the decision tree I’ll default to a if/else or switch/case except if I want to initialise a const to a conditional value, which is one of the places I praise the lord for ternaries.
If there’s more than two branches in the decision tree I’ll default to a if/else or switch/case except if I want to initialise a
constto a conditional value, which is one of the places I praise the lord for ternaries.