please stop messing with the indentation

Matt Austern austern@apple.com
Wed Aug 7 11:35:00 GMT 2002


On Wednesday, August 7, 2002, at 11:30 AM, Phil Edwards wrote:

> What's up are two things:  first, that in a 78-column limit it's nice 
> to
> use all the vertical space.  For those files that look like
>
>     namespace std
>     {
>          the entire file
>     }
>
> the namespace-indentation is (IMHO) just a waste of a nonrenewable 
> resource.
>
> Secondly -- and this is what started me doing it -- some source code 
> analysis
> tools don't see entities where the opening brace isn't at column zero.
> (Including most of the text editors I'm familiar with.)
>
>
> I like the normal indentation rules for everything inside the 
> namespace,
> but when there's only one namespace and everything's inside it, the 
> extra
> spacing just gets in my way.  I don't feel religious about it, though, 
> so
> if the consensus is that they should go away, okay.

FWIW, I agree with you.  In my opinion, the only real argument for
indenting the contents of namespace std  is that Emacs is unhappy
if you don't do it.  But I'd rather teach reasonable formatting
conventions to Emacs than adjust my formatting when Emacs
wants to do something wrong.

			--Matt



More information about the Libstdc++ mailing list