On Fri, Oct 21, 2011 at 1:37 PM, Axel Rauschmayer <[email protected]> wrote:

> It might make sense to provide this as standard functionality:
> - Testing if one type is a subtype of another type.
> - Returning all supertypes of a given type.
>
> This is especially useful if a type can significantly change the behavior
> of its subtypes and if there should ever be several ways of handling
> inheritance in ES.
>

What are you suggesting exactly? Javascript doesn't have structural typing,
sadly. But in the type system we do have instanceof and getPrototypeOf can
already be used to this effect.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to