• thebestaquaman@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 day ago

    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.