Leaf Roadmap

This document outlines features planned for future versions of the language that are currently out of scope for the v1 specification.


Concurrency and Asynchronous I/O

Status: Out of scope for v1

Planned approach:

Leaf v1 is a single-threaded language with no concurrency primitives. Future versions will introduce asynchronous programming based on:

This model prioritizes simplicity and predictability. The mutability system (mut) is designed for single-threaded safety, not concurrency control.

Example (future syntax, not yet specified):

async fn fetch_data(url: str) -> Result[str, HttpError]
    response = await http.get(url)?
    return Ok(response.body)
end

async fn main()
    data = await fetch_data("https://example.com")?
    println("Received: {data}")
end

This is illustrative only — the actual syntax and semantics of async/await are not yet designed.


Other Future Features

Additional language features under consideration for post-v1 releases:


Last Updated: 2026-04-03

Link copied to clipboard!