Carbon (pian-têng gú-giân)

Lohankhapedia (自由的百科全書) 欲共你講..。
跳至導覽 跳至搜尋
Carbon (pen程語gên)

Carbon咧GitHub組織的標誌
語言家族 C
程式員 Google
首次發行 2022 年 7月 19日;​ 2年 以前​ (2022-07-19)
預覽
版本
0.1 / 2022 年 7月 19日;​ 2年 以前​ (2022-07-19)
類型系統 Pang-bô͘:IllPang-bô͘:IllPang-bô͘:Ill
實作語言 C++
OS Pang-bô͘:Ill
文件擴展名 .carbon
網站 https://github.com/carbon-language/carbon-lang
啟發語言
C++Rust (編程語言)

Carbon (pen (tîng) ()gên) (英語 (ing-gú): Carbon (programming language); Carbon (tîng-sik gú-giân); carbon-lang) ()一眾 (tsi̍t-tsiòng)sı̽t驗性 (giām-sìng) (ê) Pang-bô͘:Ill, Carbon ()Google (tshòng)kèn,做為 (tsò-uî) "C++後繼 (hiō-kè) ()gên"。 Carbon是由 (sī-iû)Carruth Chandler ()2022 ()7 (gue̍h)的CppNorth會議 (huē-gī) (siōng)頭擺 (thâu-pái) (hiòng)公眾 (kong-tsiòng)tén是Carbon這款 (tsit-khuán)語gên.[1][2][3]

Carbon語言 (gí-giân)伊的 (i-ê)宗旨 (tsong-tsí) (teh)收蒿 (siu-ho)̽k C++[4] 頂懸 (tíng-kuân)規个 (kui-ê)beng (hia)缺點 (khuat-tiám)毋據 (m̄-kù) ()提供 (thê-kiong)類似 (luī-sū)功能 (kong-lîng)tsı̽p。 Carbon的bo̽k (piau)之一 (tsi-it) () (kah)hēn ()的C++ 代碼 (tāi-bé)進型 (tsìn-hîng)雙向 (siang-hiòng)操作 (tshau-tsok)功能。 Carbon語gên (tio)̽h (beh)GitHub頂懸set () (hām)開發 (khai-huat)猶毋過 (iáu-m̄-koh)毋是 (m̄-sī)有而 (ū-jî)C++ 使用 (sú-iōng)ISO流程 (liû-tîng)方式 (hong-sik).[5][6][7]

Carbon語gên是咧 Pang-bô͘:Ill ( ()2 (pán)) 之下 (tsi-hā)做為bén (huì)開源 (khai-guân) (hāng)bo̽k (lâi)開發的軟體 (nńg-thé).[8]

範例 (Huān-lē)[修改]

The following shows how a "Hello, World!" program is written in Carbon:

<syntaxhighlight lang="rust" line="1"> package Sample api;

fn Main() -> (i)32 {

var s: auto = "Hello, world!";
Print(s);
return 0;

} </syntaxhighlight>The following is the exact same "Hello, World!" program written inC++:<syntaxhighlight lang="c++" line="1">

  1. include <iostream>

int main() {

auto s = "Hello, World!";
std::cout << s;
return 0;

} </syntaxhighlight>

註解 (Tsù-kái)[修改]

  1. "CppNorth2022 Keynote". 2022-07-21. 2022-07-21 khòaⁿ--ê. 
  2. "Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022" (ēng Eng-gí). 
  3. Bradshaw, Kyle (19 July 2022). "Carbon, a new programming language from Google, aims都be C++ successor". 9to5Google (ēng Eng-gí). 
  4. "Difficulties improving C++" (ēng Eng-gí). 2022-07-21. 2022-07-21 khòaⁿ--ê. 
  5. Illidge, Myles (2022-07-21). "Google's Carbon programming language aims to replace C++". MyBroadband (ēng Eng-gí). 2022-07-24 khòaⁿ--ê. 
  6. Jackson, Joab (2022-07-20). "Google Launches Carbon, an Experimental Replacement for C++". The New Stack (ēng Eng-gí). 2022-07-24 khòaⁿ--ê. 
  7. Mustafa, Onsa (2022-07-20). "Carbon, A New Programming Language from Google As A C++ Successor". PhoneWorld (ēng Eng-gí). 2022-07-24 khòaⁿ--ê. 
  8. "carbon-lang/LICENSE". GitHub (ēng Eng-gí). 2020-06-16. 2022-07-24 khòaⁿ--ê. 

參閱 (Tsham-ua̍t)[修改]

  • Pang-bô͘:Ill (通用 (Thong-iōng)pen程語言 (gú-giân)/General-purpose programming language (GPL))
  • D (programming language)
  • Comparison of programming languages
  • Timeline of programming languages

外部 (Guā-pōo)lên-ket[修改]