When comparing GNU style vs (Linux) Kernel Style, the Slant community recommends GNU style for most people. In the question“What is the best indentation style in C?” GNU style is ranked 4th while (Linux) Kernel Style is ranked 5th. The most important reason people chose GNU style is:
The GNU coding standard requires that programmers write their comments in English because English is the most widely known language by programmers all over the world. This makes programs written in GNU style easy to understand internationally.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Comments are written in English
The GNU coding standard requires that programmers write their comments in English because English is the most widely known language by programmers all over the world. This makes programs written in GNU style easy to understand internationally.
Pro Easier to define where a block starts and ends
The large indentation suggested by this style makes it easier to define where a block of code starts and where it ends. Especially after looking at a screen for a prolonged amount of time.
Cons
Con Harder to understand which statement the ending brace belongs to
Since braces are in a newline and indented by two spaces, it may be hard to understand what statement the ending brace belongs to.
Con Hard to read in small monitors
Since the Kernel style uses 8 characters for indentation, the lines of code are pushed too much to the right. This may make it harder to read for small monitors (for example terminal monitors which are 80 characters wide).