What do you think about the ternary operator?

Shreyas Minocha - Aug 5 '18 - - Dev Community

Shortcuts

The ternary operator has a reputation of reducing readability. However, in the right hands, it may result in less duplication.

Do you think it's use has enough of a negative impact on readability? Are there enough legitimate use cases do justify the potential misuse?

How often do you use it? Have you seen it used in contexts where it aids readability?

Do you think modern programming languages should come with it? Users of languages without the ternary operator (golang etc), do you miss it?

. .
Terabox Video Player