fbpx
维基百科

Carbon语言

CarbonCarbon-lang是一个实验性的通用编程语言,旨在成为“C++的后继语言”。该项目开放源代码,由Google启动,沿用了之前Google自创的编程语言的脚步(GoDart)。Google工程师钱德勒·卡鲁斯(英語:Chandler Carruth)在2022年7月多伦多的CppNorth会议上首次向公众介绍Carbon语言。[1][2][3]

Carbon
Carbon语言在GitHub上的徽标
语言家族C
設計者Google
型態系統静态类型标称类型英语Nominal type system隐含类型
實作語言C++
許可證Apache-2.0
文件扩展名.carbon
網站github.com/carbon-language/carbon-lang
啟發語言
C++Rust

该语言旨在修复C++的几个明显缺点[4],但提供了类似的功能集。该语言的主要目标是可读性和“双向互操作性”,因此不会像Rust那样存在语言障碍(虽然基于C++,但与C++不兼容)。语言的更改将由 Carbon 负责人决定。[5][6][7][8]

Carbon语言的文档、设计、实现和相关工具托管在GitHub上,基于Apache-2.0许可证(带有LLVM异常)。[9]

示例

Hello, world!

package sample api;  fn Main() -> i32 {  Print("Hello, world!");  return 0; } 

参考文献

  1. ^ Scheduled events for Tuesday, July 19, 09:00 - 10:30. CppNorth, The Canadian C++ Conference, July 17-20, 2022. CppNorth. [2022-07-21] –通过Sched.com. 
  2. ^ Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022. CppNorth. 2022-07-22 [2022-07-26]. (原始内容于2022-07-29) –通过YouTube. 
  3. ^ Bradshaw, Kyle. Carbon, a new programming language from Google, aims to be C++ successor. 9to5Google. 19 July 2022 [2022-07-26]. (原始内容于2022-07-29). 
  4. ^ Difficulties improving C++. carbon-language/carbon-lang repo. Google. 2022-07-21 [2022-07-26]. (原始内容于2022-07-21) –通过GitHub. 
  5. ^ Carruth, Chandler; Ross-Perkins, Jon; Riley, Matthew; Hummert, Sidney. Evolution and governance. carbon-language/carbon-lang repo. Google. 23 July 2022 [2022-07-26]. (原始内容于2022-07-25) –通过GitHub. 
  6. ^ Illidge, Myles. Google’s Carbon programming language aims to replace C++. MyBroadband. 21 July 2022 [2022-07-26]. (原始内容于2022-07-30). 
  7. ^ Jackson, Joab. Google Launches Carbon, an Experimental Replacement for C++. The New Stack. 20 July 2022 [2022-07-26]. (原始内容于2022-07-29). 
  8. ^ Mustafa, Onsa. Carbon, A New Programming Language from Google As A C++ Successor. PhoneWorld. 20 July 2022 [2022-07-26]. (原始内容于2022-07-25). 
  9. ^ carbon-lang/LICENSE. GitHub. 2020-06-16 [2022-07-24]. (原始内容于2022-07-24). 

外部链接

  • Carbon at the Compiler Explorer (godbolt) (页面存档备份,存于互联网档案馆

carbon语言, carbon或carbon, lang是一个实验性的通用编程语言, 旨在成为, 的后继语言, 该项目开放源代码, 由google启动, 沿用了之前google自创的编程语言的脚步, go和, dart, google工程师钱德勒, 卡鲁斯, 英語, chandler, carruth, 在2022年7月多伦多的cppnorth会议上首次向公众介绍, carbon在github上的徽标语言家族c設計者google型態系統静态类型, 标称类型, 英语, nominal, type, system, . Carbon或Carbon lang是一个实验性的通用编程语言 旨在成为 C 的后继语言 该项目开放源代码 由Google启动 沿用了之前Google自创的编程语言的脚步 Go和 Dart Google工程师钱德勒 卡鲁斯 英語 Chandler Carruth 在2022年7月多伦多的CppNorth会议上首次向公众介绍Carbon语言 1 2 3 CarbonCarbon语言在GitHub上的徽标语言家族C設計者Google型態系統静态类型 标称类型 英语 Nominal type system 隐含类型實作語言C 許可證Apache 2 0文件扩展名 carbon網站github wbr com wbr carbon language wbr carbon lang啟發語言C Rust该语言旨在修复C 的几个明显缺点 4 但提供了类似的功能集 该语言的主要目标是可读性和 双向互操作性 因此不会像Rust那样存在语言障碍 虽然基于C 但与C 不兼容 语言的更改将由 Carbon 负责人决定 5 6 7 8 Carbon语言的文档 设计 实现和相关工具托管在GitHub上 基于Apache 2 0许可证 带有LLVM异常 9 目录 1 示例 1 1 Hello world 2 参考文献 3 外部链接示例 编辑Hello world 编辑 package sample api fn Main gt i32 Print Hello world return 0 参考文献 编辑 Scheduled events for Tuesday July 19 09 00 10 30 CppNorth The Canadian C Conference July 17 20 2022 CppNorth 2022 07 21 通过Sched com Carbon Language An experimental successor to C Chandler Carruth CppNorth 2022 CppNorth 2022 07 22 2022 07 26 原始内容存档于2022 07 29 通过YouTube Bradshaw Kyle Carbon a new programming language from Google aims to be C successor 9to5Google 19 July 2022 2022 07 26 原始内容存档于2022 07 29 Difficulties improving C carbon language carbon lang repo Google 2022 07 21 2022 07 26 原始内容存档于2022 07 21 通过GitHub Carruth Chandler Ross Perkins Jon Riley Matthew Hummert Sidney Evolution and governance carbon language carbon lang repo Google 23 July 2022 2022 07 26 原始内容存档于2022 07 25 通过GitHub Illidge Myles Google s Carbon programming language aims to replace C MyBroadband 21 July 2022 2022 07 26 原始内容存档于2022 07 30 Jackson Joab Google Launches Carbon an Experimental Replacement for C The New Stack 20 July 2022 2022 07 26 原始内容存档于2022 07 29 Mustafa Onsa Carbon A New Programming Language from Google As A C Successor PhoneWorld 20 July 2022 2022 07 26 原始内容存档于2022 07 25 carbon lang LICENSE GitHub 2020 06 16 2022 07 24 原始内容存档于2022 07 24 外部链接 编辑Carbon at the Compiler Explorer godbolt 页面存档备份 存于互联网档案馆 取自 https zh wikipedia org w index php title Carbon语言 amp oldid 77145529, 维基百科,wiki,书籍,书籍,图书馆,

文章

,阅读,下载,免费,免费下载,mp3,视频,mp4,3gp, jpg,jpeg,gif,png,图片,音乐,歌曲,电影,书籍,游戏,游戏。