I've considered the idea of extending the TypeScript compiler to understand
MXML, and <fx:Script> elements would contain TypeScript instead of
ActionScript. Creating a new compiler for TypeScript would be a massive
effort (even considering the similarities between ActionScript and
TypeScript), so it would be better to piggyback on Microsoft's work, in my
opinion. Especially since it would be a never-ending game of catch up as
TypeScript continues to evolve.

- Josh

On Mon, Aug 7, 2017 at 8:11 AM, Harbs <harbs.li...@gmail.com> wrote:

> I was thinking about how we could increase adoption of FlexJS and I had a
> thought:
>
> How crazy would it be to make Falcon understand TypeScript?
>
> TypeScript is currently very popular for many of the reasons that we like
> ActionScript. The difference is that ActionScript is not the current fad.
> There are also many js libraries written in TypeScript.
>
> If FalconJX would be able to compile .as files alongside .ts files,
> TypeScript code could become first-class citizens in the FlexJS ecosystem.
> That would accomplish two things:
>
> 1. TypeScript code could be used as-is in a project.
> 2. It would make FlexJS an option for many TypeScript developers and give
> FlexJS a shot at vastly increased adoption.
>
> Thoughts?
> Harbs

Reply via email to