What I am trying to understand in regards to this.

Is it, that AS3 -> AST needs to deal with those but AST->JS simply ignore it?
AS3 -> AST         -> JS
Type safe     we don't care
as long output represents input? Abstract syntax tree is abstract by definition right?




On 11/29/2012 8:26 AM, Frank Wienberg wrote:
On Thu, Nov 29, 2012 at 8:45 AM, Erik de Bruin <e...@ixsoftware.nl> wrote:

Well, there is the JavaScript operator "instanceof", what's wrong with
that?

Nothing, but it only works when you actually use the
prototype chain, not when you copy all members from
the superclass to the subclass.
Also, when using ActionScript, you will want to use "is"
for interfaces, where "instanceof" does not work.
Bernd Paradies points out in his
blog<http://blogs.adobe.com/bparadie/2012/10/21/kicking-typescipts-tires/>that
a real drawback
of TypeScript is that there is no runtime type information
about interfaces. The Jangaroo Compiler + Runtime
implement the "is" and "as" operators to work with
interfaces seamlessly and efficiently!

Greetings,
-Frank-


Reply via email to