Nim doesn't rely on headers but has to (re-)declare all the referenced symbols in each .c or .cpp file
C++ modules ([https://clang.llvm.org/docs/Modules.html](https://clang.llvm.org/docs/Modules.html)) aim among other things at improving Compile-time scalability, > Compile-time scalability: The std.io module is only compiled once, and > importing the module into a translation unit is a constant-time operation > (independent of module system). Thus, the API of each software library is > only parsed once, reducing the M x N compilation problem to an M + N problem. Could Nim benefit from upcoming C++ modules to speedup compilation times? eg by using C++ import foo instead of re-declaring each needed symbol This would speedup compilation, eg in non-separate compilation model, but possibly also separate compilation model too (eg with compilation server)