J
Jorgen Grahn
I hope this doesn't turn into an argument. I had these header files
at work, where I had most of the contents in a namespace:
/* foo.h */
namespace foo {
stuff;
pages_of_stuff;
...
}
Quite a few pages of that, and everything inside the namespace
indented. Then others took over the code, and when I revisited it last
week I noticed it had been reindented so the namespace content wasn't
indented:
/* foo.h */
namespace foo {
stuff;
pages_of_stuff;
....
}
My questions are simply:
- Do you people tend to indent in such cases?
- Is there some popular editor or IDE which prefers not to?
I can certainly understand that some feel the indent is a waste of
horizontal space, but it's really the way I (and my editor, Emacs)
prefer it.
/Jorgen
at work, where I had most of the contents in a namespace:
/* foo.h */
namespace foo {
stuff;
pages_of_stuff;
...
}
Quite a few pages of that, and everything inside the namespace
indented. Then others took over the code, and when I revisited it last
week I noticed it had been reindented so the namespace content wasn't
indented:
/* foo.h */
namespace foo {
stuff;
pages_of_stuff;
....
}
My questions are simply:
- Do you people tend to indent in such cases?
- Is there some popular editor or IDE which prefers not to?
I can certainly understand that some feel the indent is a waste of
horizontal space, but it's really the way I (and my editor, Emacs)
prefer it.
/Jorgen