Re:Learn Modern C++
by angiosperm on Tuesday December 26, 2023 @02:13PM
(#38774934)
C++20 is as big a change as C++11. It is almost as much more pleasant upgrading to C++20 as was upgrading to C++11. As more of the C++20 features get implemented in the compiler you use, the experience will continue to improve.
Many people can already write "import <std>;" instead of many lines of "#include <...>".
Re:Learn Modern C++
by NekkoDroid on Tuesday December 26, 2023 @02:36PM
(#38775199)
its `import std;`, without the angled brackets. Just make sure you are using the namespaced fixed integer types if you do :) else you still need `import std.compat` which is basically the c-headers
More seriously, though - the language is changing gradually: Features are introduced (and rarely, deprecated); and the missing bits of the standard library are added. C++11 was a _very_ significant change - but not to how you print output. C++20 and C++23 introduced `std::format` and `std::print`.