Herb Sutter on increasing safety in C++
Herb Sutter on increasing safety in C++
Posted Mar 14, 2024 23:26 UTC (Thu) by khim (subscriber, #9252)In reply to: Herb Sutter on increasing safety in C++ by Wol
Parent article: Herb Sutter on increasing safety in C++
> Or you copy yet another trick from the Rust toolbox.
C++ couldn't pull that trick. At least not just yet. You need to first stop using #include as poor man replacement for modules first, otherwise it's pretty much impossible to say which code is supposed to be written in an “old version” and which should be written in a “new version”.
C++20 added proper modules, but their adoption is still not something to write home about.
