3 ms·
> but modern C++ is really clean and you can just ignore all the complexity that's been retained for backwards compatibility. I actually think the opposite. Mo
by JohnFen 7y ago
> but modern C++ is really clean and you can just ignore all the complexity that's been retained for backwards compatibility.
I actually think the opposite. Modern C++ is painful, but a subset of it, mostly the stuff prior to the introduction of templates, is very useful and clean.
But I also think this is a strength of C++: you really can realistically decide what parts are appropriate to use in a project and what parts to ignore.
- mgraczyk 7y agoidk, I think some of the things added after templates were added in 1990 are pretty useful, like `bool`, `static_cast`, `std::vector`, etc
- MereInterest 7y agoI'd also add unique_ptr. Being able to have a heap-allocated object under RAII is a godsend.
- JohnFen 7y agoYes, I agree. My objection is really the template syntax itself. There have been many things added over the years that are good.
- einpoklum 7y agoWith due respect - prior to the introduction of templates is _super old_ C++. "Modern C++" means C++11 and later versions. It uses templates extensively, leaning towards more compile-time computation rather than relying on run-time polymorphism.