if(some_condition){
printf("Whatever\n");
}
I guess it was just a combination of paranoia, preference, and anticipation of adding additional code within the if condition that led me to code this way.
I've had a change of heart. This morning. At 10:12 am to be precise. Suddenly, it just started to annoy the crap out of me. I realize I have to pay a little extra attention to detail by omitting the brackets, but I suddenly like the 'no-bracket' style better.
if(some_condition)
printf("Whatever\n");
ICKY POO POO (Score:1)
Re:ICKY POO POO (Score:2)
The main problem I have with people using this style is that they don't indent or space worth a darn. That can get real confusing, real quick. That's probably another reason I've avoided it in the past.
Re:ICKY POO POO (Score:1)
Confounded by tabs (Score:2)
Some day you'll be skimming code that's passed through the fingers of someone who had their tabs set to an unusual number of spaces, and something like
will go flying by. Are you sure you'll read it correctly?Re:Confounded by tabs (Score:2)