Re:An introduction to type programming in TypeScript
by yingliu4203 on Wednesday February 02, 2022 @12:57AM
(#30174283)
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.
[ Parent
| on HN ]
Re:An introduction to type programming in TypeScript
by udbhavs on Wednesday February 02, 2022 @01:57AM
(#30174626)
This 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
Re:An introduction to type programming in TypeScript
by nlitened on Wednesday February 02, 2022 @02:04AM
(#30174655)
I think it shows a lot of potential to turn TypeScript to what C++ has become.
Re:An introduction to type programming in TypeScript
by webstrand on Wednesday February 02, 2022 @08:35AM
(#30177264)
Unlikely, 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).
Re:An introduction to type programming in TypeScript
by tamebadger on Wednesday February 02, 2022 @08:20AM
(#30177092)
I 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
Ok yup, definitely that one, https://news.ycombinator.com/item?id=30074414