3 ms·
Why would that be interesting? Presumably a Swift compiler handles its own type checking.
by PeCaN 10y ago
Why would that be interesting? Presumably a Swift compiler handles its own type checking.
- epicureanideal 10y agoTypeScript 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.