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)
### Introduction The fact you need to declare `[addr me: Self*]` for a method is bad. That syntax looks very bloated and for a modern language just unnecessary. ### My...
Typographical error corrected in the **one_way.md** docs in line 114 and 126
This is draft PR for adding comments to the design docs. I will update the description later once the draft is finished. Fixes #1994 Signed-off-by: Avinal Kumar
TODO: add summary and links here
From [https://github.com/carbon-language/carbon-lang/blob/trunk/docs/design/classes.md#methods](https://github.com/carbon-language/carbon-lang/blob/trunk/docs/design/classes.md#member-functions): > Methods are called using the dot . member syntax, c.Diameter() and c.Expand(...). I suggest also allowing calling methods like this: Diameter(c) and Expand(c, ...), like some C++...
See https://github.com/carbon-language/carbon-lang/discussions/1448.
There's still no name for the application entry point (`main` in C++). This was raised in #1869 and the leads asked for a proposal that evaluates trade-offs to review (note...
I created the original tuples proposal, #111 . One of the use cases for tuples is to be able to represent argument lists. At the time, I was trying to...
Here, I propose slices which are presented in [QuickSort](https://github.com/carbon-language/carbon-lang/blob/trunk/docs/images/snippets.md#quicksort). The proposed syntax is closed to Fortran, [Python](https://docs.python.org/3/library/functions.html#slice), and [Go](https://go.dev/tour/moretypes/7) slices (Obviously the list of languages could go on).