C++ long ago decided not to touch the packaging problem, and seems intent on sticking with that choice. No doubt they wanted to avoid controversy.
In my "what if?" file of hypotheticals, I wonder what would have happened if C++ had gone all in on a Cargo-like dependency manager. Ruffled feathers, pissed people off. As the blogger points out, a lot of committee time spent on `std::` additions could have been avoided if dependency management was easy.
The long-term risk for C++ is becoming a maintenance language like Fortran. That happens when it's no longer a viable choice for big, new projects. I think C++ is getting close to that line, and has crossed it in several domains. Unfortunately the people making those greenfield decisions – new programmers, startups, entrepreneurs – are not at the table in C++ decisions so they tend to be forgotten.
If they did go down that route it would have been mired in standardisation hell and probably turned out as good as modules.
The other problem with trying to standardise a whole package management system in C++ is that there are multiple compilers, build systems, and implementations of the standard library - which all affect the ABI.
It might be easier to standardise the things around a package manager such a universal package specification format to make it easier to distribute libraries, or a new standard library core library with just enough vocabulary types and concepts to provide a consistent ABI for compiled libraries. Then let vendors provide the package managers so that each one can find their own niche.
In my "what if?" file of hypotheticals, I wonder what would have happened if C++ had gone all in on a Cargo-like dependency manager. Ruffled feathers, pissed people off. As the blogger points out, a lot of committee time spent on `std::` additions could have been avoided if dependency management was easy.
The long-term risk for C++ is becoming a maintenance language like Fortran. That happens when it's no longer a viable choice for big, new projects. I think C++ is getting close to that line, and has crossed it in several domains. Unfortunately the people making those greenfield decisions – new programmers, startups, entrepreneurs – are not at the table in C++ decisions so they tend to be forgotten.