-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for "C++20" modules #4314
Comments
We are in the process of writing a paper to the next C++ standardisation meeting about this issue and about the changes we would like to see in the syntax (the current one makes it really hard to implement). Thus it is our hope that the user interface of modules will change so using dev cycles to add support for something that will be changed does not seem like the best use of our limited resources. |
Thanks for the information. If I may ask, what's the problem with the current syntax/what syntax would be better? I mean, what are your points? |
The tl/dr version is that the model as currently defined does the same thing as FORTRAN, which is a nightmare to support in a build system. |
@jpakkane any updates ? has c++'s module system proposal already been stabilized ? |
there is an ongoing discussion at |
I'm going to go ahead and close this so we can keep all of the modules discussion in the other issue. |
I was wondering if there's someone else interested (or even working) on a first implementation to support the upcoming C++20 modules (not sure if they're actually part of the upcoming C++20, but seems like so). Clang is already supporting some of the syntax and stuff, I can actually compile a module and a program that imports it using such a Makefile:
with
import stuff;
in program.cpp andexport
statements in stuff.cppm.As you can see by the Makefile it's a bit cumbersome to manually handle the compilation. I know this is not yet a final implementation/feature, but I think it's something it would be cool to experiment with for small projects. A build system like Meson handling it would be amazing, build times should also improve (that's one of the promoted reasons for modules in C++).
Is there anyone else interested or someone that wants to share its opinion?
The text was updated successfully, but these errors were encountered: