YaoXiang RFC (Request for Comments) Index
RFC (Request for Comments) is the formal submission format for YaoXiang language feature design proposals.
Contents
Template
| File | Description |
|---|---|
| RFC_TEMPLATE.md | Standard RFC template |
| EXAMPLE_full_feature_proposal.md | Complete example (enhanced pattern matching) |
Draft RFCs
| ID | Title | Author | Created | Status |
|---|---|---|---|---|
| RFC-002 | RFC-002: libuv-Based Resource-Type I/O Implementation Layer | 晨煦 | 2026-01-05 | Draft |
| RFC-028 | RFC-028: JIT Compiler — Multi-Level Execution Engine Within the VM | 晨煦 | 2026-06-11 | Draft |
| RFC-031 | RFC-031: Optimization Levels and Pass Manager | 晨煦 | 2026-06-16 | Draft |
| RFC-033 | RFC-033: ^^ Reflection Operator | 晨煦 | 2026-06-16 | Draft |
| RFC-034 | RFC-034: Unified Debugging Toolchain | 晨煦 | 2026-07-06 | Draft |
| RFC-035 | RFC-035: MCP Server Support (AI Agent Integration) | 晨煦 | 2026-07-11 | Draft |
| RFC-029a | RFC-029a: Module Caching and Incremental Recompilation | 晨煦 | 2026-09-07 | Draft |
RFCs Under Review
| ID | Title | Author | Created | Status |
|---|---|---|---|---|
| RFC-032 | RFC-032: Unified spawn Expression Modifier — Eliminating the spawn for Special Case | 晨煦 | 2026-06-16 | Under Review |
Accepted RFCs
Deprecated RFCs
| ID | Title | Author | Created | Status |
|---|---|---|---|---|
| RFC-001 | RFC-001: Spawn Model and Error Handling System | 晨煦 | 2025-01-05 | Deprecated |
| RFC-019 | RFC-019: Typed Homoiconicity - Syntax Is Type | 晨煦 | 2026-02-20 | Deprecated |
| RFC-020 | RFC-020: Dynamic Modules and FFI Integration | 晨煦 | 2026-03-14 | Deprecated |
| RFC-021 | RFC-021: Library-Driven FFI Extensions and Cross-Language Call Support | 晨煦 | 2026-03-14 | Deprecated |
| RFC-022 | RFC-022: Hoare Logic Static Verification Support (Specification Comments and Specification Types) | 晨煦 | 2026-03-16 | Deprecated |
| RFC-023 | RFC-023: Closure Capture Model | 晨煦 | 2026-05-29 | Deprecated |
Rejected RFCs
| ID | Title | Author | Created | Status |
|---|---|---|---|---|
| RFC-003 | RFC-003: Version Planning | 晨煦 | 2025-01-05 | Rejected |
| RFC-005 | RFC-005: Automated CVE Security Checking System | 晨煦 | 2025-01-05 | Rejected |
| RFC-016 | RFC-016: Quantum-Native Support and Multi-Backend Integration | 晨煦 | 2026-02-13 | Rejected |
| RFC-025 | RFC-025: Extensible Primitive Type Mechanism | 晨煦 | 2026-06-05 | Rejected |
RFC Lifecycle
草案 → 审核中 → 已接受 → 已废弃(被取代)
↓
已拒绝(不通过)Status Description
| Status | Location | Description |
|---|---|---|
| Draft | rfc/draft/ | Author draft, awaiting submission for review |
| Under Review | rfc/review/ | Open for community discussion and feedback |
| Accepted | rfc/accepted/ | Becomes an official design document and enters the implementation phase |
| Deprecated | rfc/deprecated/ | Was previously accepted but has been superseded by a new design |
| Rejected | rfc/rejected/ | Rejected RFC document |
Document Revision Rules
RFC documents must contain only correct information. When a design changes, directly edit the original text so that it expresses the current, correct semantics; do not retain incorrect content and then add an “Erratum” block to correct it.
Keeping the “original text + erratum” is the worst possible approach: readers only discover halfway through that everything preceding it has been invalidated, wasting the reading effort they have already spent and making it easy to mistake obsolete passages for references to current semantics. An erratum block may appear cautious, but in practice it shifts the cleanup burden onto readers.
Correct Approach
| Situation | Action |
|---|---|
| The implementation does not match the original text, or the original text has been overturned | Directly rewrite the paragraph with the correct content and remove the original wording |
| An example no longer runs | Directly revise it into a runnable form; do not retain the old example |
| Readers need to know what the previous version looked like | Only retain incorrect content for an intentional incorrect-example comparison, and place the “This form is incorrect” label and the reason immediately next to it |
| The evolution of the design needs to be traced | Record it in the Git commit message or issue, not in the RFC body |
Exceptions
The following incorrect information may be retained:
- Intentionally created comparison teaching: clearly marked as a correct-versus-incorrect comparison, with an explanation of why it is wrong immediately next to the incorrect side
- Deprecated RFCs (
rfc/deprecated/): retained as historical records, but should indicate what superseded them
Supporting Practices
- The
status/updatedfields at the top of an RFC reflect the latest revision time; there is no need to write “what changed in this revision” in the body - Use ✅ / ❌ in a table to indicate implementation status, and avoid weaving status narratives into the body
- Use
git log -- <file>to view the complete revision history
Submitting an RFC
- Read RFC_TEMPLATE.md to learn the format requirements
- Refer to EXAMPLE_full_feature_proposal.md to learn how to write one
- Create a new file named
number-descriptive-title.md - Place the file in the
docs/src/rfc/draft/directory - Update this index file and add an entry for the new RFC
- Submit a PR to begin the review process
Contribution Guidelines
Please refer to CONTRIBUTING.md in the repository root and the site's Contribution Guidelines for the contribution workflow.
Before submitting an RFC, please read the Submission Guidelines: the frontmatter in the RFC directory will be validated by
scripts/rfc/check_tracking.py; noncompliant fields will cause CI to fail.
