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

Fix attributes on patterns #2592

Merged
merged 6 commits into from
Jun 18, 2020
Merged

Fix attributes on patterns #2592

merged 6 commits into from
Jun 18, 2020

Conversation

jordwalke
Copy link
Member

We were not printing attributes on patterns in many cases, and we also printed attributes on named args incorrectly. This will fix the printing bug and also print attributes in many newly supported locations (patterns).
In the future, we can support a sugar for attributes on named args, but right now they require as aliases.

(~argName as [@attr] argName) => .

An alternative sugar syntax for punned could be:

(~argName [@attr]) => .

@jordwalke jordwalke merged commit fd63f5d into master Jun 18, 2020
@jordwalke jordwalke deleted the FixAttributesOnPatterns branch June 18, 2020 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants