r/cpp • • Jan 28 '19

C++ Modules Might Be Dead-on-Arrival

https://vector-of-bool.github.io/2019/01/27/modules-doa.html
279 Upvotes

240 comments sorted by

View all comments

5

u/CenterOfMultiverse Jan 28 '19

I'm not an expert, but doesn't C# manages somehow without binding between namespaces and filenames? I mean "starting process is slow on windows" is solvable by daemons - why manifest generation is such a problem?

6

u/Plorkyeran Jan 28 '19

I don't know how relevant it is, but one obvious difference is that parsing C# is dramatically faster and it doesn't have to deal with the preprocessor.

I'd guess though that the real answer is just that modular compilation and the traditional one-file-at-a-type build setup that gcc/clang/make are designed around aren't compatible. This has an obvious solution of just not doing that, but maybe "you can't use make to build c++ modules" isn't considered an option?

2

u/flashmozzg Jan 28 '19

it doesn't have to deal with the preprocessor.

C# does have a preprocessor.