4 ms·
I thought modules would be modern C++ now? Am I missing something?
by kitkat_new 5y ago
I thought modules would be modern C++ now?
Am I missing something?
- eatonphil 5y agoI tried but couldn't get modules working, personally. The various sites online I found differed in how they work in the first place. I couldn't find what the actual state of modules are in Clang.
- pjmlp 5y agoHere, https://blog.ecosta.dev/en/tech/cpp-modules-with-clang https://blog.ecosta.dev/en/tech/cpp-modules-with-clang
- DeathMetal3000 5y agoThat lengthy blog post is a perfect example of everything that is wrong with C++. Using modules should be a trivial part of the language. Instead, we have to take a detour via historical Objective-C (a language already superseded) and there are enough caveats to make a lawyer blush.
- pjmlp 5y agoSome languages care to keep 30 years of code compiling, regardless of the new shinny features.
- int_19h 5y agoIt's so modern (C++20), it's not actually implemented fully by all compilers yet. https://en.cppreference.com/w/cpp/compiler_support#cpp20 https://en.cppreference.com/w/cpp/compiler_support#cpp20
- pjmlp 5y agoIt is already good enough on Visual C++. Such is the price for an ISO language with multiple implementations.