Carbon, the latest programming language to be built within Google, was unveiled today as an experimental successor to C++.
Syntax | Description |
Family | C |
Developer | |
First appeared | 19 July 2022 |
Preview release | 0.1 / 19 July 2022 |
Typing discipline | Static, nominative, partially inferred |
Implementation language | C++ |
Filename extensions | .carbon |
Website | github.com/carbon-language/carbon-lang |
Influenced by | C++, Rust |
Programming languages are constantly improving and developing, and have been replaced in recent years with models that are even easier to use. Apple’s own Swift language has opened up several possibilities to the less experienced that its predecessor, Objective-C, for example.
Today, at the Cpp North convention in Toronto, as shared by Conor Hoekstra who was in attendance and documented the slides, Googler Chandler Carruth shared the vision for a new programming language called Carbon. To set the scene, Carruth showed how programming languages are constantly improving and developing, and have been replaced in recent years with models that are even easier to use. Apple’s own Swift language has opened up several possibilities to the less experienced that its predecessor, Objective-C, for example.
Hello World Program in Carbon
package sample api;
fn Main() -> i32 {
Print("Hello, world!");
return 0;
}
Language Goals of Carbon Programming Language
Carbon is Designed to Support
- Performance-critical software
- Software and language evolution
- Code that is easy to read, understand, and write
- Practical safety and testing mechanisms
- Fast and scalable development
- Modern OS platforms, hardware architectures, and environments
- Interoperability with and migration from existing C++ code
That's all for this article and with that, it's a wrap! I hope you found the article useful. Thank you for reading, If you have reached so far, please like the article, It will encourage me to write more such articles. Do share your valuable suggestions, I appreciate your honest feedback!
I create content about Programming, Design, and Technology, If this is something that interests you, please share the article with your friends and connections. You can also subscribe to my newsletter to get updates every time I write something!
Ta da! Until we meet again Happy Coding! ❤️