Trying out C++20's modules with Clang and Make
I&#x27;m super disappointed with modules. It&#x27;s 2023, we&#x27;ve pushed out a new c++ standard since modules were standardised, and they&#x27;re not usable.<p>They&#x27;re not supported in cmake (unless you set CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API to 2182bf5c-ef0d-489a-91da-49dbc3090d2a if you&#x27;re on the same version of cmake as I am).<p>My experience is that no IDE&#x27;s support them properly, so either you need to ifdef out for intellisense, or go back to no tooling support.<p>The format breaks every update, so you can&#x27;t distribute precompiled modules.<p>Last but definitely not least, they&#x27;re slower than headers.<p>So, we&#x27;ve got a feature that we started talking about 11 years ago, standardised 3 years ago, not implemented fully, has no build system support, and is a downgrade over the existing solution  from every real world use case I&#x27;ve seen.  What a mess.