r/javascript • • Sep 14 '26

AskJS [AskJS] Does anyone use exclussively Javascript and not TypeScript?

[removed]

10 Upvotes

156 comments sorted by

View all comments

Show parent comment

1

u/ferrrnando Sep 15 '26

Typescript types are turing complete so you could write a program that runs in a typescript compiler. Obviously this has no practical use but people have done it for the memes https://github.com/MichiganTypeScript/typescript-types-only-wasm-runtime

1

u/Kadabrium Sep 15 '26

if it could only carry evaluations to runtime. We need constexpr, declval and the likes for typescript