I often see people (myself included) linking to a JavaScript function documentation with the format Object#function
.
Example: String#split
Is there a reason why we use #
?
I've grown used to it, but I remember thinking String.split
would be a more logic thing to write.
Foo.bar
might be confused with other uses of.
, such as a package name, or nested class?{@link ...}
and@see
, etc, maybe people copied it out of habit? It is done there - afaik - to disambiguate from packages, inner/nested classes, etc.