You're viewing a single thread.
View all comments
102
comments
I quite like GNU
13 0 ReplyGNU style is logical, because braces are syntactically a single statement:
while (x == y) func1(); // can be replaced by { ... }
However, I prefer to entirely avoid unbraced single statements after while/if:
while (x == y) { func1(); // easy to add func2(); later }
Although this is ok when it fits:
while (x == y) func1(); // brevity!
2 0 Reply
You've viewed 102 comments.
Scroll to top