3 ms·
The use of ternary operators is a standard idiom, at least in C, and reduces the visual noise of if..then..else used to implement code like your example. Enfor
by watmough 16y ago
The use of ternary operators is a standard idiom, at least in C, and reduces the visual noise of if..then..else used to implement code like your example.
Enforcing coding standards to ban the use of standard idiom is exactly the sort of reason that I refuse to work for bone-headed cubicle farm-type companies.