C++ modules idea: `module namespace` declarations, which define both a module an...

@mort@floss.social

C++ modules idea: `module namespace` declarations, which define both a module and the namespace

e.g instead of wrapping files in:

module foo.bar.baz;
namespace foo::bar::baz {

...

}

I should be able to start them with:

module namespace foo.bar.baz;

and then all the symbols defined for the rest of the file should end up in foo::bar::baz.

(Arguably, this is how modules should have been by default from the beginning. But that's too late.)

#cplusplus #cpp #programming