Why, specifically, is Carbon better than C++? #1556
Replies: 1 comment 3 replies
-
If C++ works great for you, use it! We recognize that the Carbon Language won't be useful for everyone. The intended benefits of Carbon Language are noted at the top of https://github.com/carbon-language/carbon-lang/blob/trunk/README.md: Fast and works with C++
Modern and evolving
Welcoming open-source community
To your comments, I will highlight that a key goal of Carbon is automated migration from C++ -- i.e., not re-architecting. Of course, proof is in the implementation! Carbon Language is still experimental and definitely not ready for use yet. We went public early so that others could contribute to the design, and it sounds like you're more thinking about why you'd use this today -- it may not be in a state that's interesting to you, and that's fine! Hopefully there's something more for you after we've had some more years to work on implementation. |
Beta Was this translation helpful? Give feedback.
-
First impressions are that Carbon is as verbose as C++; is not significantly more expressive; has modern memory management; but is otherwise a switch-in replacement for C++.
My biggest criticism of C++ and also C# is that "there is just so much of it". In precise terms, re-architecting an OOD project is just so enormously painful; and implementing any kind of domain often results in proliferating interfaces and inheritance everywhere. Writing the code can be a pleasure; but re-designing a project is just so much hard work.
For a new language to usurp C++, I would expect some game-changing killer features, substantially reduced verbosity and an easier experience when re-architecting.
If Carbon offers these I'd love to learn more. It's also fighting against the growing vogue for functional languages, which offer both power and economy of style.
What are the specific benefits of Carbon over C++?
Is the C-family not already crowded?
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions