| 480 | 480 | **Panics:** a panic crashes only its actor ("let it crash"). Recoverable errors use `Result` or an effect. |
| 482 | | −Panics and divergence are *imprecise* for the optimiser ([ADR 0043](../adr/0043-a-core-optimiser.md)): it may reorder them, replace one with another, or skip one — `length(map(xs, f))` never runs `f` — so a program whose output depends on *which* panic fires, or on whether a panicking function runs at all, is already wrong. A run that finishes normally computes the same value with or without optimisation, on both back ends. |
| 482 | +For the optimiser ([ADR 0043](../adr/0043-a-core-optimiser.md)), a crash is observable — a monitor sees its message — so a pipeline stage that can panic is never fused, and a run that finishes normally computes the same value with or without optimisation, on both back ends. *Divergence* is imprecise, though: a pure stage that loops forever hangs fused or not, and `length(map(xs, f))` never runs `f` — a stage that is pure, cannot panic, and is only dropped. |
| 485 | 485 | import std/process.{type proc} |