3 ms·
Agreed. This is how the R language allows you to explicitly scope functions from packages. I honestly love that syntax. E.g., `dplyr::filter`, `limma::voom`
by j_bum 1y ago
Agreed.
This is how the R language allows you to explicitly scope functions from packages. I honestly love that syntax.
E.g., `dplyr::filter`, `limma::voom`
- a57721 1y agoC++ also uses (::), by the way. R probably borrowed it from C++.
- p_l 1y agoMost likely from Common Lisp due to links between R and Lisp. In CL double colon lets you access unexported symbols from a package, while single colon accesses only the exported ones
- a57721 1y agoOh I think you're right and both took it from Common Lisp, which largely predates namespaces in C++ and R.