Carbon, A New Programming Language from Google As A C++ Successor
This is not the first time we are seeing the C++ successor. Earlier, a Mozilla project, Rust, was considered a successful successor to C++. However, Carbon has many of the same goals as Rust, such as helping developers to create “performance-critical software.” Moreover, Carbon is fully interoperable with existing C++ code which is the basic goal of the company. Anyhow, here are some important features of the new programming language,
Introducer keywords and a simple grammar Function input parameters are readonly values Pointers provide indirect access & mutation Use expressions to name types The package is the root namespace Import APIs through their package name Explicit object parameter declares a method Single inheritance; classes are final by default Powerful, definition-checked generics Types explicitly implement interfaces
The project’s code is hosted publicly on GitHub and is open for pull requests, while Carbon’s culture is outlined to be accessible and inclusive for employees of companies and private individuals, alike. If you’re interested in getting started with Carbon, you can download the source code and experiment with it on your own device. Check Also: Google expands Android Earthquake Alerts System to Pakistan