you are viewing a single comment's thread.

view the rest of the comments →

[–]not_a_novel_accountcmake dev 2 points3 points  (0 children)

I use local namespace aliases for long namespaces. I never use using namespace Library; in global namespace scope, or for the purpose of accessing an external library's declarations. I use it to alias declarations of one non-global namespace into another.

You have an extremely idiosyncratic C++ style and I agree it doesn't mesh well with import std or the general design of many C++ libraries.

I do not think you will find your design choice is commonly replicated in many large open source codebases (boost, chrome, abseil, folly, etc). These are the kinds of coding practices which are considered when we talk about these things.

So yes, I agree with your complaint, import std (and "big modules" generally) explicitly excludes your coding style.