Author: german diagogerman diago Date: Feb 28, 2008 15:09
> 1. if the namespace is very big named (including the nesting and such), but
> here a better option is a local shorter namespace alias
You needn't to get the nesting symbols, since you can make private the
nested namespaces
and symbols that won't get exported in modules (that's the point of
modules)
. Please, read the proposal, you got confused I think.
> 2. if the namespace has not many "generic" names (std is the opposite,
> having alot of too general names such as "list", "vector", "pair" that have
> high chance of name clashes)
You can still fully qualify names (to disambiguate), like you do in
your code,
and still wouldn't be so verbose
as the one you get today.
> 3. if the "using namespace" is done in a very local context, such as a
> function body or a "cpp" file (but mandating "import" to do "using
> namespace" breaks this completely since people would want to use "import"
|