K&R is ugly and unreadable. It will also mess up git history a lot, so I'll
definitely vote against it.
Allman is much more acceptable, but style change is a significant change
for the project,
and there's been a lot of complaining here lately about "big changes".

śr., 19 mar 2025 o 02:03 Michał Łyszczek <michal.lyszc...@bofc.pl>
napisał(a):

> Nathan Hartman:
> > But, if there's going to be a discussion about brace styles, I would vote
> > for K&R's One True Brace Style. :-)
>
> I agree that K&R is the way to go. But. Switching to Allman is just
> removing
> 2 spaces on lines where bracket is. Change is trivial and will not mess
> with
> the history.
>
> In theory going to K&R is simple too. Basically same check as with Allman,
> but instead of removing 2 spaces you remove all spaces + previous new line
> character. But this will impact history, as all if/for/while will have an
> altered line where check is happening.
>
> tl;dr: K&R is more compact, but will mess with history. Allman will be just
> as vertically wide as GNU, but will leave history intact where it matters.
>
> I am down to any change that removes that awful GNU indent :)

Reply via email to