You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/16 19:34:11 UTC

[GitHub] [arrow] jonkeane commented on a diff in pull request #13160: ARROW-14575: [R] Allow functions with {{pkg::}} prefixes

jonkeane commented on code in PR #13160:
URL: https://github.com/apache/arrow/pull/13160#discussion_r874087967


##########
r/R/dplyr-funcs.R:
##########
@@ -58,15 +58,16 @@ NULL
 #' @keywords internal
 #'
 register_binding <- function(fun_name, fun, registry = nse_funcs) {
-  name <- gsub("^.*?::", "", fun_name)
+  name <- gsub("^.*?_", "", fun_name)
   namespace <- gsub("::.*$", "", fun_name)

Review Comment:
   Nic is absolutely right here, let's think about the design here. Especially using underscores, which are not reserved so could cause clashes | weird design decisions like they are pointing out. 
   
   You might also look at the PR that added much of this code — there's discussion in there that is super helpful: https://github.com/apache/arrow/pull/11904#issuecomment-999258101 I'm sure you've read it as well, but there's some really good content in the jira comments as well (along with some sketches). 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org