Skip to content
This repository was archived by the owner on Feb 28, 2018. It is now read-only.
This repository was archived by the owner on Feb 28, 2018. It is now read-only.

User wants to have class inheritance #48

Open

Description

@nidin

What?
User wants to have typescript style class inheritance.

How?

class A {
    constructor ( ) {
    }
}
class B extends A {
    constructor ( ) {
        super();
    }
}

Activity

  1. self-assigned this
    on Apr 12, 2017
  2. winksaville commented on Apr 12, 2017

    @winksaville
    Contributor

    Not necessarily see these at a minimum this should be post 1.0.

  3. nidin commented on Apr 12, 2017

    @nidin
    ContributorAuthor

    😄 sure moved to v2

  4. MichaReiser commented on May 17, 2017

    @MichaReiser

    How do you intend to maintain typescript syntax without requiring a vtable lookup for every method call?

    If all methods are virtual by default then every method call requires a (very expensive) vtable lookup. So I assume it is preferred to explicitly declare with methods are virtual (like in C++ or C#). However, TypeScript has no syntax to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions