Expand description
Pure stdlib builtins — string, numeric, list, option, result, json
ops dispatched via the same EffectHandler interface as effects, but
without policy gates (they have no observable side effects).
Functions§
- call_
pure_ builtin - Dispatch a pure-builtin call with owned args (no clone of arg values).
Callers must first verify
is_pure_call(kind, op)to ensure args ownership is only transferred for known-pure ops. - is_
pure_ call - Returns
trueif(kind, op)will be handled by the pure-builtin path (no side effects, no policy gate needed). Used by the effect handler to decide whether to consumeargsby value. - is_
pure_ module kindis one of the known pure module aliases — used by the policy walk to skip pure builtins that programs reference via imports.- try_
pure_ builtin - Returns Some(…) if
(kind, op)names a known pure builtin.Nonemeans “not handled here; fall through to effect dispatch”.