Re:GCC 6: -Wmisleading-indentation vs. “goto fail;”
by wdr1 on Friday February 26, 2016 @11:40PM
(#11186096)
> Making braces optional in single-statement if/else/while/for clauses is one of the biggest anti-features in C.
What's frustrating is that K&R still has a lot of example code like that as well. It would be wonderful to see a 3rd edition even if it do nothing but change its code to use braces.
What's frustrating is that K&R still has a lot of example code like that as well. It would be wonderful to see a 3rd edition even if it do nothing but change its code to use braces.