Skip to content

Add rule replacing quasiquoted make-immutable-hash with hash#794

Merged
jackfirth merged 1 commit into
masterfrom
make-immutable-hash-quasiquote-to-hash
Jul 7, 2026
Merged

Add rule replacing quasiquoted make-immutable-hash with hash#794
jackfirth merged 1 commit into
masterfrom
make-immutable-hash-quasiquote-to-hash

Conversation

@jackfirth

@jackfirth jackfirth commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Fixes #122.

Adds a make-immutable-hash-with-quasiquote-to-hash rule to the
hash-shortcuts suite. A make-immutable-hash call on a quasiquoted
association list with statically known keys is rewritten to a flat
hash call. Keys and non-unquoted values may be symbols or self-quoting
literals, and at least one value must be unquoted. Quoted datums like
(b . 'c) are excluded because quasiquote treats them as plain data
rather than expressions.

Fixes #122.

Co-Authored-By: Claude Fable 5 <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 2 files in this pull request and found no issues.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 93.958% (+0.03%) from 93.929% — make-immutable-hash-quasiquote-to-hash into master

@jackfirth jackfirth merged commit a372ab7 into master Jul 7, 2026
7 checks passed
@jackfirth jackfirth deleted the make-immutable-hash-quasiquote-to-hash branch July 7, 2026 08:59
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.

Suggest using hash instead of make-immutable-hash with quasiquoting

2 participants