4 ms·
I see that occasionally in my works codebase. I don't mind it so much. Sometimes I'll see If(predicate && nextPredicate && lastPredicate)
by zengid 7y ago
I see that occasionally in my works codebase. I don't mind it so much. Sometimes I'll see
If(predicate
&& nextPredicate
&& lastPredicate)
{
DoStuff();
}
Which I don't mind but also don't write. However, I do prefer ternary expressions like
int someNum = somePred
? firstVal + 42
: 1000;