The answer of heff (which I cannot comment due to lack of reputation) that Ruby follows the example of JavaDoc is the best guess in my opinion. JavaDoc developers needed or wanted to distinguish between package classifiers (which they used for the point) for class classifiers (for which they used the hash for). The syntax of the JavaDoc @see and @link syntax is as follows:
@see package.class
See the JavaDoc documentation package.class for the @see tag variant and the JavaDoc @link tag documentation that it already pointed to.
In JavaDoc, the package name can often be omitted, so that only the part of the class member # will remain, which looks just as strange as in Ruby, because Java code uses the Class.member syntax as Ruby does.
It would be interesting to know why JavaDoc developers need a different syntax, while the Java compiler does a great job with dots for both purposes.
Rainer Blome Feb 19 '14 at 9:24 a.m. 2014-02-19 09:24
source share