3 ms·
I guess this syntax will now enter my team code-style guideline, as forbidden. It will nice along the ?: used as a control structure instead of selection.
by nraynaud 15y ago
I guess this syntax will now enter my team code-style guideline, as forbidden.
It will nice along the ?: used as a control structure instead of selection.
- alain94040 15y agoIn hardware (Verilog), we use ?: all the time. Why not in JS?
- jallmann 15y agoThe ternary operator has its uses, such as in assignment. var foo = bar ? a : b;
- JoelMcCracken 15y agoThat's what he means by control structure instead of selection.