We propose: Special type Core.ExtType whose values describe the extended type (category, phase, and so on) of parameters or returns in the signature of functions. An exttype(...) literal syntax for writing values of Core.ExtType. Extended type facet types for expressing constraints on extended types, which may be composed using &. fwd binding modifier and return syntax parameterized by an…
pull requestupdated 1d ago3 commentsproposal
This proposal introduces a high-level overview of Carbon's planned memory safety model in /docs/design/safety/README.md, building on the safety strategy established in proposal #5914. Detailed designs and syntax for individual mechanisms will follow in subsequent proposals. Assisted-by: Gemini
pull requestupdated 1d ago0 commentsproposal
Prevent cycles that we can't satisfy by removing .Self from impl as declarations. Associated constants can depend on Self inside the definition without causing the same unsatisfiable cycles.
pull requestupdated 1d ago2 commentsproposal
TODO: add summary and links here
pull requestupdated 3d ago0 commentsproposal
Change Carbon's bitwise and bit-shift operators to use tripled symbol characters (&&&, |||, ^^^, ~~~, >>) and corresponding compound assignment operators (&&&=, |||=, ^^^=, >>=). This frees up ^ for memory safety annotations and | for potential future uses such as sum types, restores distinct spellings for bitwise complement (~~~) and bitwise xor (^^^), and avoids overloading infix & for both…
pull requestupdated 8d ago0 commentsproposal
Motivated by experimental migration of some existing C++ Code that iterated through a buffer given a pointer and length - the existing code can be migrated by using absl::Span, but a native non-owning buffer type would be simpler/nicer. Assisted-by: Antigravity with Gemini
pull requestupdated 13d ago0 commentsproposal
Proposes adding default values for function arguments to Carbon, along with limited interoperability support for the same in C++. The proposed syntax and semantics closely emulate C++. Also outlines future work to provide more general support for defaults in other pattern-matching contexts such as local variables and match alternatives.
pull requestupdated 20d ago0 commentsproposal
Description Hi Carbon team, I would like to contribute to the project by creating a Japanese translation of the main README file (README.ja.md). My goal is to make the Carbon language more accessible to the Japanese developer community, helping them better understand its design goals and encouraging more engagement with the project. Questions for Maintainers Before opening a Pull Request, I…
issueupdated 27d ago0 comments
No need to review on this PR, it is for myself and to dig through what all has happened using the GitHub UI.
pull requestupdated 27d ago2 commentsproposal
Introduce a formal model for how unformed state is defined and checked for types. This includes: Defining unsafe as and Core.UnsafeAs for unsafe conversions between types. Adding unsafe adapt for adapters where converting to or from the adapted type is unsafe, along with extend impl within an impl so an adapter can expose safe conversions in specific directions or under specific conditions…
pull requestupdated 30d ago0 commentsproposal
We propose project principles to guide how the Carbon project interacts with AI-powered tools and LLMs.
pull requestupdated 38d ago0 commentsproposal