2 ms·
I also find Static TypeScript interesting because it’s so relatively obscure compared to AssemblyScript, but much closer to regular TypeScript. And because I su
by eyelidlessness 5y ago
I also find Static TypeScript interesting because it’s so relatively obscure compared to AssemblyScript, but much closer to regular TypeScript. And because I suspect there are opportunities to use it, at least partially, in build tooling scenarios where the equivalent JavaScript (Babel/estree etc AST transforms) is a particularly poor experience and most of the alternatives involve rewriting in Rust or whatever.
I also wonder how much of the challenge of compiling [whatever subset of] TypeScript is rooted in the fact that dependencies are almost universally shipped as JavaScript. Apart from the highly dynamic nature of many front end libraries, idiomatic TypeScript usually provides a great deal more static analysis potential than is probably in use.