7 ms·
TypeScript would be a simpler translation target because it's very similar to Swift, and then TypeScript could handle the translation down to ES6, ES5, ES3, etc
by epicureanideal 10y ago
TypeScript would be a simpler translation target because it's very similar to Swift, and then TypeScript could handle the translation down to ES6, ES5, ES3, etc. Why reinvent what's already available?
- theodorton 10y agoTotally agree :) I'm working on something similar that uses flow and Crystal (which shares a lot of language features with Swift).
- TazeTSchnitzel 10y agoTypeScript is merely JS with added type annotations, annotations which are stripped off when it compiles to JS. There's no usefulness of TypeScript as a target for a compiler for Swift, because Swift already has static typing.