carbon-lang
carbon-lang copied to clipboard
Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
The original sentence was grammatically unsound, specified the three options of copy, move or pointer binding in parenthesis and some words around it.
Implements change proposed in #1382
`let main = fn()->i32 { }` Functions also have types `let animal = class{ };` Such a design can be extended to many aspects like import It's just my own...
For the future of the language it would be good to have official syntax highlighting extensions for popular editors such as VS Code or Sublime
It will be great if a Language Server can be made available for Carbon. It can greatly help in adoption of the language.
Hi. Please consider using cmake, or similar open source tool, for building carbon. Many exciting google projects are not in widespread use, just because they use Bazel as build system....
https://github.com/carbon-language/carbon-lang/blob/trunk/docs/design/README.md#imports says "The `import library ...` syntax adds all the public top-level names within the given library to the top-level scope of the current file as private names". IIUC this...
When running the example program with LLVM: ``` INFO: From Linking explorer/explorer: clang++: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument] ``` Temporarily avoid generating warnings with `-Wl`, but `-pie` may...
Hello, I was reading the documentation and I was playing around with carbon until I got into this: ``` var i: i32 = 1; // `[i32;]` equivalent to `[i32; 3]`...