ianmcook commented on pull request #11904:
URL: https://github.com/apache/arrow/pull/11904#issuecomment-999258101


   I think this is best saved for a follow-up, but when I read this comment 
from Jon...
   >I've reviewed _a lot_ of code in other places and have seen a number of 
styles that include either always using `::`, or using it liberally to avoid 
confusion/mistakes.
   
   It got me thinking: wouldn't it be nice if users could call any registered 
function by its namespace-qualified name **_or_** by its unqualified name? For 
example a user could call `paste()` or `base::paste()` and both would work the 
same. Or they could call `str_c()` or `stringr::str_c()` and both would work 
the same.
   
   To achieve that, maybe `register_binding()` could take the function name and 
the namespace name in _separate_ arguments, and register each function in both 
the unqualified and qualified forms?


-- 
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-unsubscr...@arrow.apache.org

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


Reply via email to