Imagine opening a Rust RFC and, right at the top, before any detailed discussion or jargon kicks in, you're met with a small, relatable code example. This snippet isn't just for show; it clearly demonstrates the existing problem, pinpoints why the current approach feels cumbersome or inelegant, and showcases the elegance introduced by the RFC's proposal.
The Idea: Start every Rust RFC with a succinct real-life code example. This example would:
- Spotlight the Issue: Directly show what’s problematic in the current system.
- Pinpoint the Inelegance: Contextualize why it's an issue.
- Unveil the Solution: Highlight how the RFC's proposal offers a refined approach.
The Benefits:
- Instant Context: Grasp the RFC's core idea without deep-diving first.
- Increased Accessibility: A boon for newcomers or those unfamiliar with the topic.
- Constructive Discourse: Grounded discussions based on a shared, tangible scenario.
To give a real-life example, let's look back at the RFC for the now established ?
operator, and how it might have been enriched: