On Mon, Nov 12, 2012 at 9:37 AM, Zack Weinberg <za...@panix.com> wrote:

> The scenario I'm concerned with is when a .cpp file does 'using namespace
> A;' and then goes on to define a bunch of its *own* symbols; later someone
> adds a symbol to namespace A, and gets an unexpected break possibly miles
> from their own code.  I see *avoiding* this phenomenon as the primary
> *benefit* of namespaces, and it's totally lost if you do 'using namespace'
> even in .cpp files.
>

I see. Thanks for explaining that.

I've never ever seen that happen, though. So I'm reluctant to pay an
up-front cost to mitigate a problem whose size is unknown but could be
smaller than any other problem we have. (And if it does occur in the
future, the problem can still be quite easily fixed then.)

Rob
-- 
Jesus called them together and said, “You know that the rulers of the
Gentiles lord it over them, and their high officials exercise authority
over them. Not so with you. Instead, whoever wants to become great among
you must be your servant, and whoever wants to be first must be your
slave — just
as the Son of Man did not come to be served, but to serve, and to give his
life as a ransom for many.” [Matthew 20:25-28]
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to