Google has revealed more about Carbon, a new programming language that the company says could be the successor to C++.
Programming languages are constantly being improved and developed and have been replaced in recent years by models that are even more user-friendly. Apple’s proprietary Swift language has opened up several possibilities for the less experienced than its predecessor, Objective-C, for example.
Many have called Rust a C++ successor, but at a recent event, Google Principal Software Engineer Chandler Carruth explained how the programming language that was initially a Mozilla product doesn’t have the same “bidirectional interoperability” as other tools, which create a sort of “language barrier” when ‘translating’ between different programming languages.
Go from C++ to Carbon
As such, the newly announced Carbon should be compatible with the popular C++ code, but for users who want to make the full switch, the migration should be fairly straightforward.
For those unsure of a full switchover, Carruth delved into some of the reasons Carbon should be considered a powerful successor to the C++ language, including simpler grammar and smoother API import.
There are other benefits beyond Carbon’s language, including ethical motives such as the accessibility and inclusiveness of the project culture.
The Carbon family is largely made up of Google employees, but not exclusively. After piggybacking on the tech giant’s successes, the Carbon team says it must be “an independent and community-driven project” to be successful.
Currently, the Carbon programming language is just an experiment. The source code can be downloaded for you to try already, or you can choose to experiment with it from your browser using the Compiler Explorer web app.
Via 9to5Google (opens in new tab)