Re: style change: explicitly permit braces for single statements

2020-07-11 Thread Nick Hudson

On 12/07/2020 04:01, Luke Mewburn wrote:

On 20-07-12 10:01, Luke Mewburn wrote:
   | I propose that the NetBSD C style guide in to /usr/share/misc/style
   | is reworded to more explicitly permit braces around single statements,
   | instead of the current discourgement.
   |
   | IMHO, permitting braces to be consistently used:
   | - Adds to clarity of intent.
   | - Aids code review.
   | - Avoids gotofail: 
https://en.wikipedia.org/wiki/Unreachable_code#goto_fail_bug
   |
   | regards,
   | Luke.

I was asked to CC this thread to tech-kern@, so I'm doing that.



yes please

Nick


Re: style change: explicitly permit braces for single statements

2020-07-11 Thread Luke Mewburn
On 20-07-12 10:01, Luke Mewburn wrote:
  | I propose that the NetBSD C style guide in to /usr/share/misc/style
  | is reworded to more explicitly permit braces around single statements,
  | instead of the current discourgement.
  | 
  | IMHO, permitting braces to be consistently used:
  | - Adds to clarity of intent.
  | - Aids code review.
  | - Avoids gotofail: 
https://en.wikipedia.org/wiki/Unreachable_code#goto_fail_bug
  | 
  | regards,
  | Luke.

I was asked to CC this thread to tech-kern@, so I'm doing that.


pgpkhZ7P543V7.pgp
Description: PGP signature