Am I the only one who finds ternary operators in C languages confusing?
-
-
Replying to @DaveVoyles
@DaveVoyles Once you use them a couple times it becomes much less confusing... unless you string multiple together, then my head explodes1 reply 0 retweets 0 likes -
Replying to @MirageMakes
@FinalMirage Alternatively, could you just use "if" or "case" statements instead?
2 replies 0 retweets 0 likes -
Replying to @DaveVoyles
@DaveVoyles if(x > 0) //do this else //do this other thing OR: x > 0 ? //do this : //do this other thing1 reply 0 retweets 0 likes
Replying to @MirageMakes
@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
10:39 AM - 1 Dec 2012
0 replies
0 retweets
0 likes
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.