On Fri, Nov 9, 2012 at 11:03 PM, Zack Weinberg <za...@panix.com> wrote:

> I challenge your presuppositions.  The average file should need no more
> than one or two `using SYMBOL;` lines per header it includes. Maintaining
> this will not be significantly more difficult than maintaining the existing
> lists of header inclusions (which I admit is already too difficult).


Doubling the annoyance of managing header files would itself be a fine
reason to reject this idea :-). But as Boris points out, it's worse than
that in practice.

And I think that it is worth it in order not to lose one of the major
> benefits of namespaces, viz. that you don't have to worry about symbol
> conflicts with anything but what you actually use.
>

What exactly is the benefit here? As far as I know, "using namespace A;
using namespace B;" where both A and B define Foo doesn't actually cause a
compile error unless/until the code actually references "Foo".

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