re: We don't need a ternary operator VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I like the ternary. Like @fnh pointed out, it's the only way of doing direct conditional assignment in most languages. And for the most part, we'v...
 

Yes, nesting of the second argument, the truth value, can be hideous. Nesting, or better called chaining, of the third argument can be acceptable with good formatting.

code of conduct - report abuse