News for hackers. Stuff that matters.
Re:Carbon Language: An experimental successor to C++ by fsloth on Tuesday July 19, 2022 @12:45PM (#32154400)
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.

Re:Carbon Language: An experimental successor to C++ by spacechild1 on Tuesday July 19, 2022 @02:40PM (#32156077)
> 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.

Re:Carbon Language: An experimental successor to C++ by plonk on Tuesday July 19, 2022 @03:07PM (#32156430)
Fundamentally, 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.
Re:Carbon Language: An experimental successor to C++ by sudosysgen on Tuesday July 19, 2022 @12:59PM (#32154663)
In my experience compiler error messages have gotten hugely better, except for template issues which are still very verbose. Especially with clang.
Re:Carbon Language: An experimental successor to C++ by senkora on Tuesday July 19, 2022 @10:50PM (#32160783)
And template error messages should become much better with concepts in c++20.