Carbon (pian-têng gú-giân)
Carbon咧GitHub組織的標誌 | |
語言家族 | C |
---|---|
程式員 | |
首次發行 | 2022 年 7月 19日 |
預覽 版本 |
0.1
/ 2022 年 7月 19日 |
類型系統 | Pang-bô͘:Ill,Pang-bô͘:Ill,Pang-bô͘:Ill |
實作語言 | C++ |
OS | Pang-bô͘:Ill |
文件擴展名 |
.carbon |
網站 | https://github.com/carbon-language/carbon-lang |
啟發語言 | |
C++,Rust (編程語言) |
Carbon (pen
Carbon
Carbon語gên是咧 Pang-bô͘:Ill (
範例 [修改]
The following shows how a "Hello, World!" program is written in Carbon:
<syntaxhighlight lang="rust" line="1"> package Sample api;
fn Main() ->
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">
- include <iostream>
int main() {
auto s = "Hello, World!"; std::cout << s; return 0;
} </syntaxhighlight>
註解 [修改]
- ↑ "CppNorth2022 Keynote". 2022-07-21. 2022-07-21 khòaⁿ--ê.
- ↑ "Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022" (ēng Eng-gí).
- ↑ Bradshaw, Kyle (19 July 2022). "Carbon, a new programming language from Google, aims都be C++ successor". 9to5Google (ēng Eng-gí).
- ↑ "Difficulties improving C++" (ēng Eng-gí). 2022-07-21. 2022-07-21 khòaⁿ--ê.
- ↑ Illidge, Myles (2022-07-21). "Google's Carbon programming language aims to replace C++". MyBroadband (ēng Eng-gí). 2022-07-24 khòaⁿ--ê.
- ↑ Jackson, Joab (2022-07-20). "Google Launches Carbon, an Experimental Replacement for C++". The New Stack (ēng Eng-gí). 2022-07-24 khòaⁿ--ê.
- ↑ 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ⁿ--ê.
- ↑ "carbon-lang/LICENSE". GitHub (ēng Eng-gí). 2020-06-16. 2022-07-24 khòaⁿ--ê.
參閱 [修改]
- Pang-bô͘:Ill (
通用 pen程語言 /General-purpose programming language (GPL)) - D (programming language)
- Comparison of programming languages
- Timeline of programming languages
外部 lên-ket[修改]
|