- Source: Carbon (programming language)
Carbon is an experimental programming language designed for connectiveness with C++. The project is open-source and was started at Google. Google 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 MVP version 0.1 in 2025 and a production-ready version 1.0 after 2027.
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, whilst being influenced by C++, is not two-way compatible with C++ programs. Changes to the language will be decided by the Carbon leads.
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 and C++:
See also
Comparison of programming languages
Timeline of programming languages
C++
D
Go
Rust
Ring
Mojo
V
References
External links
Carbon-language on GitHub
Carbon at the Compiler Explorer (godbolt)
Kata Kunci Pencarian:
- Rust (bahasa pemrograman)
- C++
- Carbon (bahasa pemrograman)
- Carbon (programming language)
- Zig (programming language)
- List of programming languages
- C++
- Programming language
- Carbon (disambiguation)
- Timeline of programming languages
- History of programming languages
- Carbon (API)
- "Hello, World!" program