This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: please stop messing with the indentation
- From: Matt Austern <austern at apple dot com>
- To: Phil Edwards <phil at jaj dot com>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, libstdc++ at gcc dot gnu dot org
- Date: Wed, 7 Aug 2002 11:36:01 -0700
- Subject: 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