On Sat, Nov 30, 2013 at 6:56 AM, Benoit Jacob <jacob.benoi...@gmail.com>wrote:
> I'm all for reducing usage of 'using' and in .cpp files I've been switching > to doing > > namespace foo { > // my code > } > > instead of > > using namespace foo; > // my code > This only works if you want to put all of the symbols in your file in the 'foo' namespace. In XPConnect, each file has stuff in the global namespace, some stuff in namespace xpc, and a smattering of other namespaces. Putting all of this in namespace JS doesn't make sense for obvious reasons, but we still want to use all the JS symbols without prefixing. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform