
Bo Persson via Boost
hat am 19.12.2024 09:29 CET geschrieben: On 2024-12-19 at 02:26, Chuanqi Xu via Boost wrote:
On the other hand, the idea to implement it in Clang without the proposal in WG21 looks like pandora’s box to me.
The committee is sometimes accused of inventing a new language, instead of only standardizing. Giving them some proven "existing practice" to standardize could be a good idea.
The "existing practice" was established long before modules and the related rules became standardized with C++20 (remember the Modules TS? It was - at least partially - implemented in MSVC and Clang). I like the remarkable stability of that language feature. Changing that requires a proposal with a better motivation than just perceived convenience, and a champion who's willing to die on that hill.
Especially if it has to do with the "export" keyword. :-)
If we did the second point, the code accepted by clang may not be accepted by other compilers. Although it happens now, we don’t want it to be the case. Further more, I feel it makes the position of WG21 to be in a pretty embrassive position.