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 parse_args() function #7

Open
kdpsingh opened this issue Apr 7, 2023 · 0 comments
Open

Add parse_args() function #7

kdpsingh opened this issue Apr 7, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kdpsingh
Copy link
Member

kdpsingh commented Apr 7, 2023

This is not high priority at all (have other issues to address first) but I want to create a new parsing function that will solve the problem of intermixing named with positional arguments. In R, this is fairly common and R has a specific behavior.

We would probably call this as parse_args([:x, :y, :z], exprs...), where the vector indicates the R-style position of the arguments on the macro, and this would parse and return the arguments in the correct order. This is kind of like the match.call() function in R and will ultimately end up in the TidierTools package.

Note to self: we need to add a :dots option to handle ... arguments. Anything after the :dots must be a named argument.

@kdpsingh kdpsingh self-assigned this Apr 7, 2023
@kdpsingh kdpsingh added the enhancement New feature or request label Apr 7, 2023
@kdpsingh kdpsingh transferred this issue from TidierOrg/Tidier.jl Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant