Carbon (programming language)

This is an old revision of this page, as edited by 2405:204:8386:8aed:7e:95e6:9c5d:28c9 (talk) at 07:03, 27 July 2022 (Hello, world!). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Carbon is an open and experimental general-purpose programming language created at Google to be a "C++ successor language". It was first presented to the public by Chandler Carruth at the CppNorth conference in July of 2022.[1][2][3]

Carbon
FamilyC
DeveloperGoogle
First appeared19 July 2022; 3 years ago (2022-07-19)
Preview release
0.1 / 19 July 2022; 3 years ago (2022-07-19)
Typing disciplineStatic, nominative, partially inferred
Implementation languageC++
OSCross-platform
Filename extensions.carbon, .co2
Websitehttps://github.com/carbon-language/carbon-lang
Influenced by
C++, Rust

Features

The language intends to fix several perceived shortcomings of C++[4] but otherwise provide a similar feature set. The main goals of the language are readability and "bi-directional interoperability", as opposed to using a new language like Rust. Similar to the ISO process used by C++, changes to the language will be decided by community consensus.[5][6][7][8]

The language is developed as a free and open source project under the Apache License (version 2). It's hosted in GitHub.[9]

Examples

Hello, world!

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

See also

References

  1. ^ "CppNorth2022 Keynote". 21 July 2022. Retrieved 21 July 2022.
  2. ^ "Carbon Language: An experimental successor to C++ - Chandler Carruth - CppNorth 2022".
  3. ^ Bradshaw, Kyle (19 July 2022). "Carbon, a new programming language from Google, aims to be C++ successor". 9to5Google.
  4. ^ "Difficulties improving C++". 21 July 2022. Retrieved 21 July 2022.
  5. ^ "carbon-lang evolution and governance". GitHub. 23 July 2022. Retrieved 25 July 2022.
  6. ^ Illidge, Myles (21 July 2022). "Google's Carbon programming language aims to replace C++". MyBroadband. Retrieved 24 July 2022.
  7. ^ Jackson, Joab (20 July 2022). "Google Launches Carbon, an Experimental Replacement for C++". The New Stack. Retrieved 24 July 2022.
  8. ^ Mustafa, Onsa (20 July 2022). "Carbon, A New Programming Language from Google As A C++ Successor". PhoneWorld. Retrieved 24 July 2022.
  9. ^ "carbon-lang/LICENSE". GitHub. 16 June 2020. Retrieved 24 July 2022.