Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce entry specs in open map destructurings #1021

Merged
merged 1 commit into from Mar 23, 2024

Conversation

frenchy64
Copy link
Contributor

@frenchy64 frenchy64 commented Mar 14, 2024

A spec of [:altn [:cat k1 s1] ... [:cat kn sn] [:cat :any :any]] is equivalent to [:cat :any :any]. This results in specs for destructured open maps that skip all entry checks when providing kw args.

@frenchy64 frenchy64 marked this pull request as ready for review March 14, 2024 04:36
@ikitommi
Copy link
Member

indeed. good catch. thanks!

@ikitommi ikitommi merged commit ebb5aae into metosin:master Mar 23, 2024
5 of 9 checks passed
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.

None yet

2 participants