docs: update ROADMAP and LanguageRef with closures

- Mark capture-less closures as  Done in ROADMAP
- Add closure syntax examples to LanguageRef.md Functions section
- Update PHASE8_STRATEGY.md Milestone A with closures
This commit is contained in:
2026-06-09 20:25:34 +03:00
parent c83f6d5994
commit ba54aa240e
3 changed files with 13 additions and 3 deletions
+4 -3
View File
@@ -236,6 +236,7 @@ Task::Spawn(Worker, rx);
5.**Named/default parameters** — Done
6.**Basic borrow checker (`@[Checked]`)** — Done (selfhost)
7.**`bux fmt`, `bux test`, `bux new`, `bux init`** — Done (selfhost)
8. **Closures** — High complexity, unlocks iterators and functional style. **← NEXT**
9. **`for x in collection`** — Depends on closures or trait system.
10. **Destructors / Drop** — High complexity, needs ownership + move semantics.
8. **Closures (capture-less)** — Done. Enables callbacks and higher-order functions.
9. **Closures with captures**Needs capture analysis + environment struct. **← NEXT**
10. **`for x in collection`** — Depends on closures with captures or trait system.
11. **Destructors / Drop** — High complexity, needs ownership + move semantics.