4 ms·
Regarding C++. IMHO - it’s not getting intrinsically better. More complex. Easy things become a bit less verbose, but the hardest things remain as hard and the
by fsloth 4y ago
Regarding C++. IMHO - it’s not getting intrinsically better. More complex. Easy things become a bit less verbose, but the hardest things remain as hard and the compiler is as unhelpful as before.
I agree C++11 and it’s successors are sugaring the language to be a lot nicer but fundamentally nothing has changed.
Rust is fundamentally better in it’s compiler warnings (they are actually helpful), and contains specific solutions to the things that are hard and bite you in C++.
C++ is not going away and it’s my main professional language but Rust does have features that are better.
- sudosysgen 4y agoIn my experience compiler error messages have gotten hugely better, except for template issues which are still very verbose. Especially with clang.
- senkora 4y agoAnd template error messages should become much better with concepts in c++20.
- spacechild1 4y ago> but fundamentally nothing has changed. IMO, move semantics and lambda functions have fundamentally changed the way we write C++. Also, let's not forget that C++11 introduced a formal memory model with cross-platform atomic operations and multi-threading primitives.
- plonk 4y agoFundamentally, it has smart pointers and std::make_unique now, which means I never have to touch a raw pointer in most of my code. They can even be adapted to wrap Win32 objects. That's a huge improvement and I don't mind using C++ for new projects now.