feat: def/apply/export/step — reusable folding sequences, instances, panels #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/step-defs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the revised step/macro design (docs/superpowers/specs/2026-07-02-step-macros-design.md):
defnever runs,applyis the only execution form and yields a retained instance,exportreads without re-running,stepis a display-only panel marker. Binding separator is now=;_-prefixed temps rebind and stay invisible in FOLD; duplicate binding is an error everywhere. Qualified access.[$i m]/--[$i m]gives collision-free FOLD names (i.m).Breaking:
:bindings no longer parse — all examples, tests and the spec (§5a, since v0.16-dev) are migrated.Resolves #29, resolves #24.
:' to=' ba4ed37030Screenshots of the examples this PR touches —
cube-root.belrestructured withsteppanels +_-temps (folded state unchanged, render byte-identical to the reference),def-diagonals.belnew def/apply demo. Note the qualified crease namesd1.d/d2.din the second diagram — collision-free FOLD naming from repeatedapply.cube-root.bel — crease pattern / folded


def-diagonals.bel — crease pattern
