4 ms·
The problem is not knowing how ternaries work, it's about how explicit is that line of code.
by pier25 8y ago
The problem is not knowing how ternaries work, it's about how explicit is that line of code.
- Cthulhu_ 8y agoExactly; to use the phrasing used in the presentation, it's about how difficult it is to decode the statements. I'm not a C guy; a regular ternary is fine, as long as it's simple enough. A nested ternary? That gives me all kinds of red flags because I have to lean in and frown and go over it a few times to decode it.