Description
The JSdoc documentation for ‘namepaths’ declares the following syntax for instance methods:
MyConstructor#instanceMember
This is meaningless, in JavaScript … and perhaps this is a bit subjective, but having grown up in Ruby et al years ago, it's ugly. More importantly, it's just Yet Another Thing to Learn for newcomers learning JSdoc'd codebases in JavaScript; and besides the equally-horrendous-but-probably-unfixable {@link syntax}
, it's the only one that doesn't map directly to the equivalent source-code syntax.
Meanwhile, there's an old and well-accepted syntax shortcut for .prototype.
: CoffeeScript's ::
! (Hopefully coming soon to ECMAscript, although admittedly only as a stage-0 right now.)
Perhaps this is merely aesthetic and has no place here, but after the billionth time typing Foo#bar
in documentation tags to point to a method that's written, tested, and documented-in-prose as Foo::bar
, I thought I'd at least drop an Issue out there. (=