I suggest you ...

Nested namespace declarations

I suggest to extend syntax of nested namespace declarations and provide alternative way similar to one implemented in C#:

namespace Outer::Inner // declares nested namespace
{
struct Foo
{
};
}

Outer::Inner::Foo foo;

That would be useful for codebases with high usage of nested namespaces especially with level of depth 3 or more.

115 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    AlexAlex shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    10 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base