To do a surface level bikeshed: not a huge fan of whitespace or braces. Needless flexibility in the language when they could just pick one. If there is an eventual code formatter, I assume the decision will be made then.
To do a surface level bikeshed: not a huge fan of whitespace or braces. Needless flexibility in the language when they could just pick one. If there is an eventual code formatter, I assume the decision will be made then.
if (n < 2) { return n
else { return fibR(n - 1) + fibR(n - 2)}It's a bit too obscure. I can't imagine when I'd ever manually format.
I don't even find it that hard to imagine (I can even imagine multiple seamlessly integrated AI-suggested options generated based on your previously handcrafted examples), but agree with your underlying point that that's likely not going to happen given the state of tooling design across the board
if x=1...
if y=2
So you still have to resolve the coding style conflict somehowMaybe even auto rejecting commits that don't match it, like some projects do.
You could of course do the same with a flexible language, but without manual formatting at least some part there's probably not going to be as much benefit.
I guess you could say "auto format leaves braces alone" but then you don't have a fully machine executable style.
Maybe you could have the auto format just always compact the braces, but that seems like encouraging dense one liners, most projects probably want to discourage that.