Crossing namespaces
Daniel d'Andrada
daniel.dandrada at canonical.com
Wed Jul 3 10:30:22 UTC 2013
On 03/07/13 07:21, Thomas Voß wrote:
> On Wed, Jul 3, 2013 at 12:16 PM, Daniel van Vugt
> <daniel.van.vugt at canonical.com> wrote:
>> >Umm, no. I don't recommend making the namespaces any deeper than they
>> >already are :)
>> >
>> >
> Hmmm, why not? It's arguably a very good way to classify components
> into different categories (which is the purpose here, iiuc) and
> namespace aliasing helps in avoiding spelling out deep namespace
> hierarchies.
Just my two cents:
I think namespace aliases (like "mc", "ms" and so on) hamper readability
(eg:"hey, what that 'xyz::' prefix stands for again... let me check its
declaration at the top of the file") and are a sign that those
namespaces are actually getting in your way instead of helping you out.
IMHO, if they are not solving naming clashes and are repeating
information (e.g. foo::FooController instead of just foo::Controller)
they your're not really gaining anything from them.
More information about the Mir-devel
mailing list