On Tuesday, July 17, 2018 at 6:00:07 PM UTC-3, Adam Wysocki wrote:
> Hi,
>
> What is your preference towards indenting contents of namespaces?
My preference is not to use namespaces.
Unless I have to do some library for other people
(other companies) to use. In this case I will have just
one level like namespace MyLib;
In this case I would use the indentation that the IDE does
by default.
The reason to avoid namespaces is that I don't want to
add more text and logic (like the reasoning about
the namespace names) to the code to solve one
problem (name crash) that I don't have and from my
experience I will never had or it will be just
one function that could(should) be static.
Also I don't want o manage "sets" of better logic for
the position of some function and creates a debate
about this.
If the code looks like many layers of abstraction
and the layers are represented by namespace this is
a bad sign for me. Just like class hierarchies.
Generally I use folders to represent source
that will always be used together because they depend on
each other to build and they can be reused in other
projects just coping the folder.