Conversation
|
Honestly I hadn't considered adding modules anytime soon because everytime I look at them they don't seem to be ready to use?
|
|
It's failing because the current CI uses an older tool chain that works with modules poorly. I'll set it up correctly for the modules a bit later. Current support of modules in compilers is excellent in Clang 17+ and MSVC 2022+. Idk about GCC, Google says 14+ works with modules good. In this PR I use export-using style as LLVM guidelines recommends, so it won't be hard to maintain. If a user is on an old compiler, they just #include as usual. If they are on a modern stack, they can get the 20%-40% build time improvement from import. |
Modules reduce compilation times and improve encapsulation.
They're completely optional and don't break the code that uses headers.
Usage: