Camomile, Wednesday, 10 June 12026 HE
2026-06-10 | 26F10 | 2026-161 | 2461202
2026-W24-3 | Q2 | Estate
the C programming language has been around long enough that Wikipedia easily lists a dozen styles for indentation and brace placement – K&R style (Linux kernel style, BSD KNF style) has remained the most common with Allman style being a popular alternative:
/* Kernighan & Ritchie style */
while (x == y) {
foo();
bar();
}
/* Allman style */
while (x == y)
{
foo();
bar();
}
most of the other styles have kind of fallen by the wayside, but the Linux kernel style guide adds a warning against using GNU style – and even though I’m not a programmer, I think I would agree – GNU style doesn’t even feel aesthetic
/* GNU style */
while (x == y)
{
foo();
bar();
}
the day before
the month before
the quarter before
the year before