On 5/20/2014 12:36 PM, Nicolas Silva wrote:

So, I strongly encourage everyone to stop using "using namespace".

I think I disagree about the "mozilla" namespace specifically. Since basically all of gecko does or will end up being in the mozilla namespace, I'd like to counter-propose that we should write `using namespace mozilla;` at the head of all gecko .cpp files in the tree.

Otherwise, I think you're right about other namespaces. I do wonder though, if you would accept/encourage these at the toplevel:

using mozilla::dom::ipc::Blob; // or whatever

That pattern still pollutes the global namespace in a way that potentially affects unified builds, but in general it seems like the C++ pattern we want.

--BDS

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to