Skip to content

Add rule flattening apply/append/map syntax templates#797

Merged
jackfirth merged 1 commit into
masterfrom
claude/gracious-feistel-2be52d
Jul 8, 2026
Merged

Add rule flattening apply/append/map syntax templates#797
jackfirth merged 1 commit into
masterfrom
claude/gracious-feistel-2be52d

Conversation

@jackfirth

Copy link
Copy Markdown
Owner

Fixes #769.

Also teaches the s-expression renderer to print constructed syntax forms as #', mirroring its existing quote' handling, so the rewritten template reads as #'(a ... ...) rather than (syntax (a ... ...)).

🤖 Generated with Claude Code

Adds the `flatten-apply-append-syntax-template` rule, rewriting
`(apply append (map syntax->list (syntax->list #'((a ...) ...))))` to the
more direct `(syntax->list #'(a ... ...))`.

To render the reconstructed template with `#'` shorthand instead of the
`(syntax ...)` long form, the s-expression renderer now prints constructed
`syntax` forms as `#'`, mirroring its existing `quote` -> `'` handling.

Fixes #769

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resyntax analyzed 3 files in this pull request and found no issues.

@jackfirth jackfirth merged commit 8b58fcf into master Jul 8, 2026
6 checks passed
@jackfirth jackfirth deleted the claude/gracious-feistel-2be52d branch July 8, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New rule: flatten-apply-append-syntax-template

1 participant