by koakuma-chan · 1y ago · 0 comments
Which means all that high quality teaching material is DECADES old. Rust development is centralised and therefore the docs are always up-to-date, unlike C/C++ which is a big big mess.
This is very different than Rust where every new version is abandonware after 6 weeks and the compiler does not let you specify that your code is from a specific version.
Do you have any specific evidence? Rust ecosystem is known for libraries that sit on crates.io for years with no updates but they are still perfectly usable (backward-compatible) and popular. Projects usually specify their MSRV (minimum supported Rust version) in the README.
Right, the docs never get out of date if the thing they document never changes. Can you say the same about C++ though? I’ve heard they release new versions every now and then. My robotics teacher didn’t know ‘auto’ is a thing for example.
There is no `-std=1.85` in rust 1.86. You do get `-std=c++98` in both g++ and clang++. A book on C or C++ is still useful even decades later since the version of C or C++ described does not become abandonware at some well defined point after release, unlike Rust releases.
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes
MINOR version when you add functionality in a backward compatible manner
PATCH version when you make backward compatible bug fixes
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.What kind of versioning scheme does C/C++ use?
If your argument was C then sure thats a C23 feature (well the type inference type of auto ) and is reasonably new.
This is much more a reflection on youe professor than the language. C++11 was a fundamental change to the language, anyone teaching or using C++ in 2025 should have an understanding of how to to program well in a 14 year old version of said language...
> anyone teaching or using C++ in 2025 should have an understanding of how to to program well in a 14 year old version of said language...
If the current year is 2025 then 14 years ago is 2011 which is not that long ago.
> If your argument was C then sure thats a C23 feature (well the type inference type of auto ) and is reasonably new.
Grandparent comment is arguing that Linux was written in C89 until a few days ago so decades old books on C aren't actually outdated.
I ended up switching to Python for job requirements after getting through half the book. If I re-learn C, I'll go back to it. If it were C++, that would be a totally, different story since they kept piling features on over time.
I could spurr into an essay of what kind of lack of understanding you just portrayed about the world, but I won't.... I won't...