guber@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.world · 4 days agoproportional reactionlemmy.blahaj.zoneexternal-linkmessage-square45fedilinkarrow-up1164arrow-down118
arrow-up1146arrow-down1external-linkproportional reactionlemmy.blahaj.zoneguber@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.world · 4 days agomessage-square45fedilink
minus-squarethebestaquaman@lemmy.worldlinkfedilinkarrow-up3·3 days 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
const
to a conditional value, which is one of the places I praise the lord for ternaries.