This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: please stop messing with the indentation


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]