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

Let over using #947

Merged
merged 4 commits into from
Sep 30, 2023
Merged

Let over using #947

merged 4 commits into from
Sep 30, 2023

Conversation

vyzo
Copy link
Collaborator

@vyzo vyzo commented Sep 30, 2023

So we frequently have to write (let (x expr) (using (x ...)) body ...) and this was too much typing and rightwards drift.
This extends the all powerful using macro to support this pattern with (using (var expr ~ contract) body ...).

@vyzo vyzo requested a review from a team September 30, 2023 17:26
@netlify
Copy link

netlify bot commented Sep 30, 2023

Deploy Preview for elastic-ritchie-8f47f9 ready!

Name Link
🔨 Latest commit bec68bf
🔍 Latest deploy log https://app.netlify.com/sites/elastic-ritchie-8f47f9/deploys/65185a3cb4d10a00080c48e4
😎 Deploy Preview https://deploy-preview-947--elastic-ritchie-8f47f9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@vyzo vyzo requested a review from drewc September 30, 2023 18:07
@vyzo vyzo merged commit 257d67f into master Sep 30, 2023
@vyzo vyzo deleted the let-over-using branch September 30, 2023 18:20
@@ -60,7 +60,7 @@
(mutex-lock! cp.mx)
(set! cp.out (remq conn cp.out))
(mutex-unlock! cp.mx)
{destroy conn}))
{conn.destroy}))
Copy link
Collaborator

Choose a reason for hiding this comment

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

How does that work over {} ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added support for dots in the @method macro in the ptelude in the original using pr.

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.

3 participants