You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julia has a really neat syntax for self naming of args, where
fn(a, b; c, d)
is the same as
fn(a, b, c=c, d=d)
rlang already has support for self-naming args in rlang::dots_list() and rlang::list2(). It would be great if R users could opt into the self naming args semantics to avoid spelling out some argument names twice.
I'm not sure what syntax would be concise, convenient, readable, and make it past the R parser.
Maybe something like:
Julia has a really neat syntax for self naming of args, where
fn(a, b; c, d)
is the same as
rlang already has support for self-naming args in
rlang::dots_list()
andrlang::list2()
. It would be great if R users could opt into the self naming args semantics to avoid spelling out some argument names twice.I'm not sure what syntax would be concise, convenient, readable, and make it past the R parser.
Maybe something like:
Edit:
I suppose an approximation is possible today with:
The text was updated successfully, but these errors were encountered: