coconut icon indicating copy to clipboard operation
coconut copied to clipboard

Add syntax for late-bound function defaults

Open evhub opened this issue 3 years ago • 2 comments

See: https://www.python.org/dev/peps/pep-0671/

Would need to be supported in normal and pattern-matching function definition.

evhub avatar Nov 12 '21 08:11 evhub

Currently, pattern-matching functions always use late-bound defaults, which is a bug right now, but could be turned into a feature to help support this.

evhub avatar Jan 17 '22 03:01 evhub

I would love to work on it can you assign development of this feature to me

Jatinjain07Dazai avatar Oct 06 '23 18:10 Jatinjain07Dazai

This is now a full-fledged feature of pattern-matching functions, including support for syntax such as match def f(x, y=x) = (x, y).

evhub avatar Feb 25 '24 09:02 evhub