pub struct ContinueIfSpec {
pub when: String,
pub each: Vec<ScopeLevel>,
}Expand description
SRD-101 — a continue_if pre-entry sweep gate declared on a
comprehension-bearing scenario step or phase. A polydat when: predicate
over the iteration’s COORDINATE context (end_of(p), idx_of(p),
outer-scope consts like effective_max_size) plus an each: scope level.
The walker evaluates it per iteration BEFORE entering the body; while it is
true the iteration runs, and the moment it is false the sweep at each
ends gracefully (Interrupted+Succeeded — see SRD-101 §4). Aligns with
StopConditionSpec (shares when/each and the ScopedExpr machinery),
but is a pre-entry gate with continue polarity and a fixed graceful effect.
Fields§
§when: StringPolydat predicate over the coordinate context. The sweep continues while it is true and halts (gracefully) the moment it is false.
each: Vec<ScopeLevel>Scope level whose sweep ends on a false predicate. Defaults to
scenario (the enclosing comprehension); workload halts the run.
Canonical key per:; each: accepted as an alias. (For a
continue_if gate this level is both detection and action — the
full per:/at: split for gates is a later step.)