|
|
|
|
|
by reginaldjcooper
4560 days ago
|
|
Without curly braces it is simpler to mess up if you revisit the code, maybe especially adding ambiguous else conditions. I'm sure you and the GP would never forget to add curly braces when inserting an else, but the junior developer who comes afterwards might, and it's just not a huge deal to have the braces because it's two extra chars. Quite frankly the Linux kernel coding style is wrong on this one in general, I guess we can assume they are experienced enough to put braces in when adding an else clause and so it's not going to cause them errors. But with junior devs it certainly could. |
|