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

User wants to have class inheritance #48

Open
nidin opened this issue Apr 12, 2017 · 3 comments
Open

User wants to have class inheritance #48

nidin opened this issue Apr 12, 2017 · 3 comments
Assignees

Comments

@nidin
Copy link
Contributor

nidin commented Apr 12, 2017

What?
User wants to have typescript style class inheritance.

How?

class A {
    constructor ( ) {
    }
}
class B extends A {
    constructor ( ) {
        super();
    }
}
@nidin nidin self-assigned this Apr 12, 2017
@winksaville
Copy link
Contributor

winksaville commented Apr 12, 2017

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

@nidin nidin added the v2.0.0 label Apr 12, 2017
@nidin
Copy link
Contributor Author

nidin commented Apr 12, 2017

😄 sure moved to v2

@MichaReiser
Copy link

MichaReiser commented May 17, 2017

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants