mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 11:32:37 +00:00
A Carbon function that needs to report recoverable failures should return a sum type whose alternatives represent the success case and failure cases, such as Optional(T), Result(T, Error), or Bool. The function's successful return value, and any metadata about the failure, should be embedded in the alternatives of the sum type, rather than reported by way of output parameters or other side channels. Carbon's design will prioritize making this form of error handling efficient and ergonomic. Co-authored-by: josh11b <josh11b@users.noreply.github.com>
Proposals
This directory contains accepted proposals for the carbon-lang repository. For information about declined/deferred proposals, please view the proposal's original pull request.
For accepted proposals, where #### is the corresponding proposal's pull
request:
p####.mdwill contain the main proposal text.p####may be present as an optional subdirectory for related files (for example, images).
Proposal list
- 0029 - Linear, rebase, and pull-request GitHub workflow
- 0042 - Create code review guidelines
- 0044 - Proposal tracking
- 0051 - Goals
- 0063 - Criteria for Carbon to go public
- 0074 - Change comment/decision timelines in proposal process
- 0083 - In-progress design overview
- 0107 - Code and name organization
- 0113 - Add a C++ style guide
- 0120 - Add idiomatic code performance and developer-facing docs to goals
- 0142 - Unicode source files
- 0143 - Numeric literals
- 0149 - Change documentation style guide
- 0157 - Design direction for sum types
- 0162 - Basic Syntax
- 0175 - C++ interoperability goals
- 0179 - Create a toolchain team.
- 0196 - Language-level safety strategy
- 0198 - Comments
- 0199 - String literals
- 0253 - 2021 Roadmap
- 0285 - if/else
- 0301 - Principle: Errors are values
- 0340 - while loops
- 0426 - Governance & evolution revamp