evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.09k stars 125 forks source link

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

Closed evhub closed 3 months ago

evhub commented 3 months ago

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