On 2012-11-12 1:44 PM, Robert O'Callahan wrote:
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.)

OK, fair enough.

zw

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

Reply via email to