> The following uses deceptive whitespace to suggest a nesting that is contrary to the actual nesting, interfering with understanding
Fortunately, the ternary pattern doesn't exhibit this problem. So again, this objection doesn't fly.
Fortunately, the ternary pattern doesn't exhibit this problem. So again, this objection doesn't fly.
The nesting is absolutely relevant to producing the semantics.
The following uses deceptive whitespace to suggest a nesting that is contrary to the actual nesting, interfering with understanding:
The ternary operator A ? B : C is the goofy invention of demented mind. In nested situations, it is mind-bendingly unreadable. It behooves us to style it in a way that reveals the abstract syntax tree structure.In C, I would in fact recommend:
Now we can have it in one line, yet it's clear.