• deaf_fish@lemm.ee
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    1 year ago

    Okay, even if I give you the unexpected behavior point. The readability problem remains. Switch statements or tables will work just fine and are easier to read.

    To be clear, I am fine with single ternary operations. I think nested ternary operations are harder to read and follow.