Nested ternary statements
condition_1 ? (condition_2 ? option_1 : option_2) : option_3
I like the conciseness of them. They are easy for me to read and reason about in the moment. They are not easy to reason about in 2 months time when I encounter it again. Its why I prefer some verboseness to ease and help future me
if condition_1
return condition_2 ? option_1 : option_2
else
return condition_3
You will have an easier time to quickly skim this function, than trying to parse a nested ternary statement.