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 syntax for passing a variable as a keyword argument of the same name #743

Closed
evhub opened this issue May 19, 2023 · 2 comments
Closed

Comments

@evhub
Copy link
Owner

evhub commented May 19, 2023

Should compile (something like)

func(long_name_1=, long_name_2=)

to

func(long_name_1=long_name_1, long_name_2=long_name_2)

Alternative syntaxes:

func(=long_name_1, =long_name_2)
func(...=long_name_1, ...=long_name_2)
@evhub evhub added the feature label May 19, 2023
@evhub evhub added this to the v3.0.1 milestone May 19, 2023
@evhub
Copy link
Owner Author

evhub commented May 20, 2023

Whatever syntax we pick here should also be supported in partial application and anonymous namedtuples.

@evhub evhub added the resolved label May 20, 2023
@evhub
Copy link
Owner Author

evhub commented May 20, 2023

The func(...=long_name_1, ...=long_name_2) syntax is now live on coconut-develop>=3.0.0-post_dev7.

@evhub evhub closed this as completed May 20, 2023
evhub added a commit that referenced this issue May 20, 2023
@evhub evhub mentioned this issue May 24, 2023
evhub added a commit that referenced this issue May 25, 2023
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