Hello all, First, a few conclusions I've drawn: * Keep indent checking fully decoupled, indent style may or may not change in future. * For the moment we'll keep gnu style. Code style change will have a big impact over the code base. * If it comes to change, Allman is the best candidate, this will not have an significant impact on my work, changing an constant for braces indent depth (this only applies for indent)
Second, some would avoid python, let's discuss programming language: I'll add a few key points for this discussion: * Zephyr is using python for its meta-tool, west. * Mynewt is using go for its meta-tool, newt * Do nuttx need/want a similar meta-tool * There are already python scripts in our tooling, maybe worth standardizing them. * If it comes to not using python i'll insist on using rust, personal take, I do not want to handle strings using c. Let's hear the community take on this subject. Cheers, Mihai On Wed, 19 Mar 2025 at 09:44, raiden00pl <raiden0...@gmail.com> wrote: > 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 :) >