[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: style change: explicitly permit braces for single statements
On Jul 12, 2020, at 9:31 PM, Greg A. Woods <woods%planix.ca@localhost> wrote:
> Personally I don't think there's any good excuse for not always putting
> braces around all single-statement blocks. The only bad execuse is that
> the language doesn't strictly require them. People are lazy, I get that
> (I am too), but in my opinion C is just not really safe without them.
I strongly concur, in my professional work for the past few decades the braces have never been considered optional (and neither have "extraneous" parentheses in expressions).
Main Index |
Thread Index |