Re:C++ Modules Might Be Dead-on-Arrival (2019)
by dgellow on Friday December 31, 2021 @02:10AM
(#29745730)
C++ modules have little to do with the concept of "modules" you find in other languages. You can think about it as a more standardized way to define and create what is known as pre-compiled headers. But that's basically it.
[ Parent
| on HN ]
Re:C++ Modules Might Be Dead-on-Arrival (2019)
by klodolph on Friday December 31, 2021 @03:18AM
(#29746009)
C++ modules are not like pre-compiled headers. They give you freedom to specify what you are and are not exporting from a module. This is unlike header files (including pre-compiled headers), where you are constrained to re-export any dependency your header file has, as well as any code internal to your module which is necessary to declare your exports.
C++ headers are a total mess, and modules are the cleanup effort.