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

Quoted forms in matches #84

Open
gafter opened this issue May 17, 2023 · 0 comments
Open

Quoted forms in matches #84

gafter opened this issue May 17, 2023 · 0 comments

Comments

@gafter
Copy link
Member

gafter commented May 17, 2023

I would be nice if quoted forms could be used in matches:

expr = :(function f(x); x; end)
@assert (@match expr begin
        :(function fname(_...); _...; end) => fname
    end) == :f
@gafter gafter transferred this issue from JuliaServices/Rematch2.jl Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant