3 ms·
> A TypeScript designed to aid static compilation likely would have that distinction. AssemblyScript (https://www.assemblyscript.org/ https://www.assemblyscrip
by cprecioso 2y ago
> A TypeScript designed to aid static compilation likely would have that distinction.
AssemblyScript (https://www.assemblyscript.org/ https://www.assemblyscript.org/) is a TypeScript dialect with that distinction
- mananaysiempre 2y agoIt’s advertised as that, and it’s a cool project, but while it’s definitely a statically typed language that reuses TypeScript syntax, it’s not clear to me just what subset of the actual TypeScript type system is supported. That’s necessarily bad—TypeScript itself is very unclear about what its type system actually is. I just think the tagline is misleading.
- eyelidlessness 2y agoProbably a better way to think about AssemblyScript is first as a DSL for WASM, and second as providing a subset of TS syntax and authoring semantics to achieve that. The type system is closer to TS than the syntax and semantics. At least that was my experience when I explored it some time back.
- mananaysiempre 2y ago*not necessarily bad, d’oh
- saghm 2y agoThe tagline on the site seems to be " TypeScript-like language for WebAssembly", which seems pretty clear to me that it's not pretending to be a strict subset or anything.