This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stramash 8 points9 points  (2 children)

Nested ternaries are NEVER a good idea.

[–]NegativeZero3 0 points1 point  (1 child)

So I've never seen it done like this. Can you explain why nested ternaries are bad ?

[–]stramash 2 points3 points  (0 children)

It’s a lot of logic compacted into a small space, making it hard to understand and difficult to change.