3 ms·
Thank you, this makes your intention clearer. You should know that it is very common to advocate subsetting C++, mostly by people who prefer not to learn anyth
by ncmncm 7y ago
Thank you, this makes your intention clearer.
You should know that it is very common to advocate subsetting C++, mostly by people who prefer not to learn anything new. These efforts are always based on the fundamental mistake that old, familiar features are implicitly better than new features, so new features should be treated with especial suspicion. But new features obsolete old ones specifically because we know more today how to write fast and reliable software.
So, if you consider subsetting the language, look at the totality of features, and favor new features over old. C++ inherits a great many design flaws from C, and constructs that depend on those flaws should be the first to go. Constructors, destructors, in-class member initializers, and exceptions are a huge win for reliable code. They have no effect on compile time, vs. dodgy C-like ways to achieve the same ends.
Many of the newest features, particularly those connected to constexpr and concepts, replace dodgy template metaprogramming constructs that are very slow to compile.