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 support for keyword argument name elision in pattern-matching #848

Closed
evhub opened this issue Jul 24, 2024 · 0 comments
Closed

Add support for keyword argument name elision in pattern-matching #848

evhub opened this issue Jul 24, 2024 · 0 comments

Comments

@evhub
Copy link
Owner

evhub commented Jul 24, 2024

Should support stuff like

my_class(my_attr=) = my_instance

as equivalent to

assert isinstance(my_instance, my_class)
my_attr = my_instance.my_attr
@evhub evhub added the feature label Jul 24, 2024
@evhub evhub added this to the v3.1.2 milestone Jul 24, 2024
@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