Carbon或Carbon-lang是一个实验性的通用编程语言,旨在成为“C++的后继语言”。该项目开放源代码,由Google启动,沿用了之前Google自创的编程语言的脚步(Go和 Dart)。Google工程师钱德勒·卡鲁斯()在2022年7月多伦多的CppNorth会议上首次向公众介绍Carbon语言。
示例
Hello, world!
package sample api;
fn Main() -> i32 {
Print("Hello, world!");
return 0;
}
参考文献
外部链接
- [https://carbon.godbolt.org/ Carbon at the Compiler Explorer (godbolt)]
评论 (0)