Files
rose-ash/spec/tests
giles 191981a22b Step 10: tail position guarantees — verified across all contexts
9 new deep recursion tests (100K-200K depth) confirming TCO in:
- match, begin, do, let-match — tail expressions get same continuation
- parameterize — provide frames are contextual, don't block TCO
- guard — handler body in tail position via cond desugaring
- handler-bind — body sequences with rest-k
- and/or — short-circuit preserves tail position
- mutual recursion — 200K depth even/odd

CEK machine correctly preserves tail position in all forms.
2676/2676 standard tests pass (was 2668 + 9 new - 1 pre-existing).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 23:34:51 +00:00
..