4 ms·
It's eye-opening to know the Turing completeness of TypeScript' type programming. It is fun and insightful to know this fact. The examples are simple and to the
by yingliu4203 5y ago
It's eye-opening to know the Turing completeness of TypeScript' type programming. It is fun and insightful to know this fact. The examples are simple and to the point.
- udbhavs 5y agoThis really shows that there is a lot of potential for a native tsc alternative (like the one that was on the front page recently) to shine in terms of performance
- nlitened 5y agoI think it shows a lot of potential to turn TypeScript to what C++ has become.
- webstrand 5y agoUnlikely, types intentionally cannot affect the emitted JavaScript. You can always get raw JavaScript from TypeScript code by blindly erasing the type annotations (and transforming a few special syntaxes).
- tamebadger 5y agoI just remembered this blog post, maybe that's the one that was on the front page recently ? https://kdy1.dev/posts/2022/1/tsc-go https://kdy1.dev/posts/2022/1/tsc-go Ok yup, definitely that one, https://news.ycombinator.com/item?id=30074414 https://news.ycombinator.com/item?id=30074414