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

Support the match statement #110

Closed
felix-hilden opened this issue Aug 29, 2022 · 1 comment
Closed

Support the match statement #110

felix-hilden opened this issue Aug 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@felix-hilden
Copy link
Owner

I haven't ever tried it (the feature, or how it works with autolink), but I suspect that it doesn't. So let's support it!

@felix-hilden felix-hilden added the enhancement New feature or request label Aug 29, 2022
@felix-hilden
Copy link
Owner Author

felix-hilden commented Sep 11, 2022

The first obvious step is just parsing it in general, which already works. But I bet we could do something smart with it:

import lib

match _:
    case lib.Thing(attr=x):
        x  # lib.Thing().attr
    case lib.Thing(things=[lib.Another(attr=x), y])
        x, y  # x: lib.Another().attr, y: no link

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

No branches or pull requests

1 participant