Carbon is an experimental programming language intended to be a successor to C++. Carbon seeks to provide modern language features and reformed syntax while being compatible with existing C++ code. The project is from Google, and is open-source. Google's engineer Chandler Carruth first introduced Carbon at the CppNorth conference in Toronto in July 2022. He stated that Carbon was created to be a C++ successor. The language is expected to have an experimental minimum viable product (MVP) version 0.1 in late 2026 at the earliest and a production-ready version 1.0 after 2028. The language intends to fix several perceived shortcomings of C++ but otherwise provides a similar feature set. The main goals of the language are readability and "bi-directional interoperability" (which allows the user to include C++ code in the Carbon file), as opposed to using a new language like Rust, that, while being influenced by C++, is not two-way compatible with C++ programs. Changes to the language will be decided by the Carbon leads. It aims to build on the C++ ecosystem the way in an analogous role to TypeScript on JavaScript, or Kotlin on Java. Carbon's documents, design, implementation, and related tools are hosted on GitHub under the Apache 2.0 license with LLVM Exceptions.
Example The following shows how a program might be written in Carbon, compared with its equivalent in C++:
Syntax
Primitives Unlike C and C++'s primitive types, Carbon adopts exact-width primitives (similar to Rust).
Operators Carbon's logical operators use keywords rather than symbols. Some of these keywords already exist in C++ as a result of inheriting C alternative tokens as keywords.
See also
Comparison of programming languages Timeline of programming languages C++ syntax Cpp2, an alternative C++ syntax
References
External links Carbon-language on GitHub Carbon language documentation Carbon at the Compiler Explorer (godbolt)

