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

Pin parameter ^p assigns function parameter to outer variable #1651

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

edemaine
Copy link
Collaborator

As discussed on Discord, this seems like a natural extension of our pinned patterns. Originally motivated by simulating Promise.withResolvers in this natural way:

image

Copy link
Contributor

@STRd6 STRd6 left a comment

Choose a reason for hiding this comment

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

👏

@edemaine edemaine merged commit d142b63 into main Dec 20, 2024
4 checks passed
@edemaine edemaine deleted the pin-param branch December 20, 2024 00:26
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.

2 participants