top | item 45409813

(no title)

a57721 | 5 months ago

C++ also uses (::), by the way. R probably borrowed it from C++.

discuss

order

p_l|5 months ago

Most 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|5 months ago

Oh I think you're right and both took it from Common Lisp, which largely predates namespaces in C++ and R.