Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 29s
scm-match-list now detects `<pat> ...` at the END of a pattern list and binds <pat> (must be a symbol — single-variable rest) to the remaining forms as a list. Nested-list patterns under ellipsis and middle-of-list ellipses are NOT supported yet (rare in practice; deferred). scm-instantiate-list mirrors: when it encounters `<var> ... ` inside a list template, it splices the list-valued binding of <var> in place. Internal list-append-all helper for the splice. Removes the `(length pat) = (length form)` strict-equality check in scm-match-step's list case — that gate blocked ellipsis. The length-1-or-more relaxed check now lives in scm-match-list itself. 8 ellipsis tests cover: - Empty rest (my-list) - Non-empty rest (my-list 1 2 3 4) - my-when with multi-body - Variadic sum-em via fold-left - Recursive my-and pattern (short-circuit AND defined as macro) 257 total Scheme tests (62 + 23 + 49 + 78 + 25 + 20). Phase 6c (proper hygiene) is the next step and will be the **second consumer for lib/guest/reflective/hygiene.sx** — the deferred research-grade kit from the kernel-on-sx loop.
24 KiB
24 KiB