Carbon: Google programming language as a C++ successor

Carbon: Google programming language as a C++ successor

Carbon, the latest programming language to be built within Google, was unveiled today as an experimental successor to C++.

SyntaxDescription
FamilyC
DeveloperGoogle
First appeared19 July 2022
Preview release0.1 / 19 July 2022
Typing disciplineStatic, nominative, partially inferred
Implementation languageC++
Filename extensions.carbon
Websitegithub.com/carbon-language/carbon-lang
Influenced byC++, 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! ❤️

Did you find this article valuable?

Support Anup Kumar Maurya by becoming a sponsor. Any amount is appreciated!