3 ms·
There’s still a huge part of the industry that writes a mix of C-style C++. Modern C++ is all about template metaprogramming, concepts, move semantics, ranges,
by stingraycharles 1y ago
There’s still a huge part of the industry that writes a mix of C-style C++.
Modern C++ is all about template metaprogramming, concepts, move semantics, ranges, etc.
But there’s a significant cognitive load will all of that.
- bluGill 1y agoThe term modern C++ means RAII. Those other things are common and sometimes useful in new code that can use them. However anyone who says 'modern C++' is talking about RAII not those other things.
- pjmlp 1y agoAlready possible in C++ARM, as any look into 1990's C++ frameworks documentation on digital archives would prove, regarding RAII. Or even articles in The C/C++ Users Journal, Dr Dobbs, PC Techniques, Microsoft Systems Journal. Unfortunately many that write C with C++ compilers, only started paying attention around C++11.
- bluGill 1y agoThe term Modern C++ predates C++11. C++11 gave us move constructors which makes RAII much more powerful, but we were doing it for a long time in C++. Well some of us were doing it, there are a lot of people who are writing the type of code that gives C++ a bad name (even today)
- stingraycharles 1y agoIsn’t “modern” a term that’s relative to the current time, rather than a fixed point in time? Like, modern architecture, fashion, cuisine all change over time. Why would “Modern C++” refer to a fixed point in time somewhere in the 90s?