• PeriodicallyPedantic@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    Bah

    Ternary is just a compressed if-elseif-else chain with a guaranteed assignment.
    If you format it like a sane person, or like you would an if/else chain, then it’s way easier to read than if/else chains.