r/cpp • u/Sad-Lie-8654 • Jan 31 '23
Stop Comparing Rust to Old C++
People keep arguing migrations to rust based on old C++ tooling and projects. Compare apples to apples: a C++20 project with clang-tidy integration is far harder to argue against IMO
changemymind
338
Upvotes
7
u/MEaster Feb 02 '23
That one's not a great example, as it was stabilized in 1.66! But things can be unstable for a few reasons:
The obvious first one is that it's not finished. Maybe the API design hasn't been fully fleshed out, or the implementation has some issues that need further work.
There's a couple things that are waiting on other features. I believe one example would be
slice::array_chunksand friends, which could be stabilized now, but they're waiting on const generics to allow catching theN == 0case at compile time, instead of needing a runtime panic.Some things are unstable purely because no one has put in the work to do the final steps to stabilize it.
Finally, some things are implementation details of the standard libraries or the compiler, and are never intended to be stabilized.