2 ms·
TypeScript has at least 2 implementations: tsc and Deno, but I take your point and agree. That said, most languages probably have a JS runtime, so a basic imple
by throwaway894345 5y ago
TypeScript has at least 2 implementations: tsc and Deno, but I take your point and agree. That said, most languages probably have a JS runtime, so a basic implementation would be ts->js->interpreter. The ts->js is presumably pretty easy.
- junon 5y agoI don't think Deno actually re-implements typescript, does it? Seems like a lot of wasted effort. They don't even use Typescript internally.
- Soremwar 5y agoReimplement in the way that they change certain rules to accommodate a more "modern JS" feel And they absolutely use TS for the std library, just not in the runtime itself
- junon 5y ago> Reimplement in the way that they change certain rules to accommodate a more "modern JS" feel What exactly do you mean by this? > And they absolutely use TS for the std library, just not in the runtime itself Yes, internally. The code that actually makes up deno itself is just plain Javascript.
- dangoor 5y agoI'm pretty sure Deno just uses the open source TypeScript compiler: https://github.com/denoland/deno/tree/main/cli/tsc https://github.com/denoland/deno/tree/main/cli/tsc
- remorses 5y agoThey use swc for transpilation and bundling but, yes, for checking the only solution available now is tsc
- deleted 5y ago[deleted]