nousermane
Joined 5 years ago
Karma
1,311
Submissions
495
Member since
Dec 19
Joined 5 years ago
Relevant: https://xkcd.com/1988/
> using the conditional-value ("ternary") operator in any capacity
Looks like author of some code I had to comb through recently, maybe had that among guidelines. Said code was replete with:
if(function_that_returns_boolean()){
return true;
}else{
return false;
}
...and... if(foo()){
return true;
}else{
if(bar()){
return true;
}else{
return false;
}
}