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)
I had been bothered by the confusing suggestions to replace calls to a constructor with ... calls to a constructor, claiming the original code was a C-style cast. In some...
Mechanically, replacing Directive->Decl, directive->declaration, _declaration->_decl (to avoid comments). Context: https://discord.com/channels/655572317891461132/963846118964350976/1241145948625703062
The toolchain was iterating a map of package name to import list in a couple of places to do things beyond counting or other order-invariant operations. The result was that...
A lot of the JSON we use is parsed by VSCode or other systems that are happy to have comments in them, and we should retain a license header there....
### Description of the bug: The examples in the README need to be updated to reflect the change to package syntax from proposal https://github.com/carbon-language/carbon-lang/pull/3927 . ### Link to documentation: https://github.com/carbon-language/carbon-lang/blob/trunk/README.md...
Note, I assume this doesn't affect all the TODOs (like for i32.carbon), but does cut some things down (and requires updating some tests that have prelude name conflicts, but I...
This makes cross-package `export import` work. Note collisions still occur with cross-package "export name".
Switch from recursing into non-canonical instruction fields to separately canonicalizing those fields. This means we now form canonical `InstBlockId`s, `TypeBlockId`s, `IntId`s, `FloatId`s, and `BindNameId`s at least in the cases when...
Modifies the core package and literal handling to use factory functions for standard type literals. Updates function/builtin/import.carbon to stop depending on the prelude, since it would list all the impls...