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)
https://github.com/carbon-language/carbon-lang/blob/trunk/docs/project/goals.md#language-tools-and-ecosystem doesn't note a code formatter as a goal. This maybe slipped past us as worth noting explicitly. Need to see what others think.
In [discussion with @jonmeow](https://docs.google.com/document/d/1tEt4iM6vfcY0O0DG0uOEMIbaXcZXlNREc2ChNiEtn_w/edit#bookmark=id.nqnwjftv303t), I had some concerns about how we're modeling intrinsics in explorer. Specifically, I didn't want for us to end up with a large catalogue of predeclared...
Add non-goals from https://github.com/carbon-language/carbon-lang/blob/trunk/docs/project/goals.md#non-goals
The "choice types" portion of [p0157](https://github.com/carbon-language/carbon-lang/blob/trunk/proposals/p0157.md) is now documented in `docs/design`, but the design for user-defined sum types exists only in the proposal document. That's a problem because it's not...
Return is performing the same function as ```Print``` for other data types. Print on the other hand only accepts string data type rather than all data types. For instance, attempting...
This code doesn't compile: ```carbon package sample api; fn Main() -> i32 { return Square(12); } fn Square(x: i32) -> i32 { return x * x; } ``` I think...
Let ` T = decltype(expr)` then: Define `*expr` be of type `deref(T)` equivalent to and implicitly convertible to C++ reference type `T&`. Define `&expr` be of type `underef(T)`. Allow `underef`...
In C++ and others, we often code these: ```cpp while (true) { // do something if (/* */ ) break; // do something } ``` Like this, the condition is...
I think it's better to use the **_const_** keyword than to use **_let_** for constant values In my opinion us much clear const Pi: f32 = 3.14; to use let...
Long story short, `->` is one of the most miserable operators to type out. I have tried desperately to use alternatives to C++ simply on the basis of not wanting...