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

Allow parentheses in match cases #622

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Allow parentheses in match cases #622

merged 1 commit into from
Jan 15, 2025

Conversation

Akuli
Copy link
Owner

@Akuli Akuli commented Jan 15, 2025

Example:

match foo:
    case (
        Foo.Bar1
        | Foo.Bar2
        | Foo.Bar3
        | Foo.Bar4
        | Foo.Bar5
    ):
        printf("yea\n")
    case _:
        printf("nope\n")

@Akuli Akuli merged commit 4b4af78 into main Jan 15, 2025
35 checks passed
@Akuli Akuli deleted the match-parens branch January 15, 2025 13:48
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.

1 participant