4 ms·
>nested ternary (please don't) Eh, if you use whitespace effectively it is perfectly readable. Moreso than the alternative, IMO.
by bluedanieru 14y ago
>nested ternary (please don't)
Eh, if you use whitespace effectively it is perfectly readable. Moreso than the alternative, IMO.
- dchichkov 14y agoYep. My thinking exactly. Easiest thing to read is a table. Always :)
- Dylan16807 14y agoA table is fine, but the equivalent of 'else if' isn't true nesting. I meant making an elaborate tree, which should not be squished into a single statement unless you have a really good way of organizing it.
- bluedanieru 14y agoThat's what I meant, as well :-)