Typescript compilation to other languages

Topics: General
Jul 25, 2013 at 1:21 AM
I wonder can current tsc be modified so that it will be able to generate not only js code, but any other language code, for example C++, Java etc ?
Jul 25, 2013 at 6:55 PM
You can explore the source code of the compiler and add other languages to the code generation side. I'd imagine this would actually be pretty tricky, as TypeScript and its semantics are tied very closely to JavaScript, so the compiler merely "peels away" the type information to produce the JavaScript output.