3 ms·
Python collapses the name of the module (usually the name of a file) and the name of the "namespace" on the importing side, while C++ modules add a level of ind
by HelloNurse 6y ago
Python collapses the name of the module (usually the name of a file) and the name of the "namespace" on the importing side, while C++ modules add a level of indirection by specifying arbitrary namespaces for module content (independent of the name of the module).
Evidently, the complexity of finding the same namespace in multiple compilation units has been considered acceptable for C++ modules because it was already handled decently.