Am I the only one who finds ternary operators in C languages confusing?
@FinalMirage Alternatively, could you just use "if" or "case" statements instead?
-
-
@DaveVoyles it's exactly the same as an if/else statement (at a high level at least), not sure how the compiler reads it -
@FinalMirage Readability above all else! (although I'm sure the low level guys would disagree :p
- Show replies
New conversation -
-
-
@DaveVoyles if(x > 0) //do this else //do this other thing OR: x > 0 ? //do this : //do this other thing -
@FinalMirage I'm slowly getting it. Just caught me off guard initially, especially in terms of readability when I'm so used to if/else
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.