On 2026-01-28 20:29:58 -0500, Derek Martin wrote: > On Thu, Jan 29, 2026 at 01:53:08AM +0100, Vincent Lefevre wrote: > > On 2026-01-28 15:46:08 -0500, Derek Martin wrote: > > > - many, many developers (myself included, but also almost everyone > > > I've worked with) find 2 spaces inadequate for indentation, most > > > especially (but not exclusively) in longer functions with more > > > than 2 or 3 levels of indentation. If you're not one of those, > > > bully for you, but don't make the rest of us suffer. Please, use > > > a minimum of 4. > > > > Said like that, this does not make much sense, because there are > > several ways to indent. For instance: > > Except I indicated W. Richard Stevens' style is perfect. So if you've > ever seen any of his stuff, you knew what I meant. I'm fairly certain > you have. If you haven't, you can find examples of it online.
They seem to be impossible to find by doing search like W. Richard Stevens' style... not even on his webpage (the links, even local ones, seem to have been broken over the time). > > and (GNU-style indentation) > > ...is poison. It wastes lines on the open paren, does not line up the > end of the block with the start of the block, and otherwise is the > same as indenting 4 spaces. So just skip the silly paren alignment > and use 4 spaces. Whoever came up with this style was clearly on > cocaine. This is a matter of taste. Many developers are fine with it. -- Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
