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

Specify the set of variables to be defined in @ismatch #101

Open
gafter opened this issue Feb 3, 2024 · 0 comments
Open

Specify the set of variables to be defined in @ismatch #101

gafter opened this issue Feb 3, 2024 · 0 comments

Comments

@gafter
Copy link
Member

gafter commented Feb 3, 2024

As suggested in #96 (comment), support some syntax like @ismatch (vars=A,B,C) [10,9,8] ( ... to list the variables to be assigned at the start of the block e.g. such that unmatched or unused variables take the value missing in the following:

@ismatch (vars=A,B,C) [10,9,8]  (

    [A && 10|11|12 ,    B,          C        ]  ||
    [A && 20|21 ,       B,          C        ]  ||
    [A && 1|2,          B && 2|3 ]              # note C not defined in this alternative
)
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