Re:Porting 4.5K lines of C to Go
by bshimmin on Saturday August 05, 2017 @01:47AM
(#14934396)
I honestly struggle to understand how a traditional ternary like this isn't obvious. The bit before the question mark is the condition (er, like a question, which ends with a question mark), then the other two bits are for true and false in the order you would expect.
I will freely admit I try and avoid nested ternaries, which I personally find hard to read.
I will freely admit I try and avoid nested ternaries, which I personally find hard to read.