Code Monkey home page Code Monkey logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 12, 2024
There are some fundamental technical problems with this feature. Java enforces 
the
rule that any subclass can only have a single superclass, but in JavaScript 
there is
no such enforcement. In fact there is no such thing as a superclass at all, 
because
inheritance is based prototypes. It is possible that a constructor's prototype 
could
be a combination of several other objects. This would be documented like so:

/**
 * @name Ant
 * @extends Insect
 * @extends Hexapod
 * @extends Pest
 */

So to create a tree such as you are requesting I must devise a rule for how to 
deal
with arbitrarily many superclasses. I don't see how that is possible.

Insect Hexapod Pest
|      |       |
|      |       +-+
|      +---------+
+----------------+- Ant

Now consider if every one of those superclasses has many superclasses (and so 
on).

The alternative is to invent an arbitrary rule that you can only ever have one
@extends tag, or that secondary @extends tags will be ignored, but that seems 
worse
than having no tree diagram at all.

I'm willing to listen to suggested solutions, but until then I think this 
feature is
more problematic than helpful.

Original comment by micmath on 8 Sep 2007 at 9:22

  • Changed state: MoreInfoRequired
  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 12, 2024
Cleaning up: This issue will be deleted without more information.

Original comment by micmath on 9 Oct 2007 at 6:23

from jsdoc-toolkit.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 12, 2024

Original comment by micmath on 15 Oct 2007 at 9:40

  • Changed state: WontFix

from jsdoc-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.