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

Add better pattern-matching for anonymous named tuples #847

Closed
evhub opened this issue Jul 24, 2024 · 1 comment
Closed

Add better pattern-matching for anonymous named tuples #847

evhub opened this issue Jul 24, 2024 · 1 comment

Comments

@evhub
Copy link
Owner

evhub commented Jul 24, 2024

You can do

tuple(name=pattern) = (name=value)

but it won't check the length, so it's not an ideal solution.

@evhub evhub added the feature label Jul 24, 2024
@evhub evhub added this to the v3.1.2 milestone Jul 24, 2024
@evhub
Copy link
Owner Author

evhub commented Jul 24, 2024

Should also support #848 here.

@evhub evhub added the resolved label Jul 26, 2024
evhub added a commit that referenced this issue Jul 26, 2024
@evhub evhub closed this as completed Jul 26, 2024
@evhub evhub mentioned this issue Sep 1, 2024
evhub added a commit that referenced this issue Sep 1, 2024
See Coconut's
[documentation](http://coconut.readthedocs.io/en/develop/DOCS.html) for
more information on all of the features listed below.

Bugfixes:
* #851, #852: Fixed comments inside of parentheses in the Jupyter
kernel.

Language features:
* #846: `reduce`, `takewhile`, and `dropwhile` now support keyword
arguments.
* #848: Class and data patterns now support keyword argument name
elision.
* #847: New pattern-matching syntax for matching anonymous named tuples.

Compiler features:
* #843: Added compiler warnings for (some cases of) undefined variables.
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