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

CapturePatternNode #354

Closed
kddnewton opened this issue Mar 26, 2023 · 0 comments
Closed

CapturePatternNode #354

kddnewton opened this issue Mar 26, 2023 · 0 comments
Labels
Milestone

Comments

@kddnewton
Copy link
Member

Right now, when you capture an expression into a variable in pattern matching, we get a binary node. For example,

case foo
in Bar => baz
end

Instead, we should create a new node to represent this pattern. YARP calls this AsPatternNode but I don't like the name and am going to rename it to CapturePatternNode to be more clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant