News for hackers. Stuff that matters.
Re:Inconvenient Truths about TypeScript by runeks on Tuesday July 18, 2023 @09:47AM (#36772129)
> If you have to use Javascript (you're building the front-end of a web app), then it seems like Typescript is probably a decent solution.

Why choose Typescript over any of the other hundreds of languages that transpile to JavaScript?

Re:Inconvenient Truths about TypeScript by w3news on Tuesday July 18, 2023 @10:04AM (#36772439)
Why need another dialect if you can just use Javascript. I think most people don't really know Javascript, and what is possible. Most arguments to use Typescript are not good arguments, and Javascript can more than most people think. Typescript is more a combined box of tools, and a lot of things can be done without Typescript or another dialects.
Re:Inconvenient Truths about TypeScript by lolinder on Tuesday July 18, 2023 @10:01AM (#36772393)
I've tried a few of those, and the bundle size is typically insane. The amount of code you have to ship just to get the semantics of your language and your standard library is nuts.

There may be a few exceptions that were designed from the outset with JavaScript in mind, but then you're back to being at the mercy of JS quirks.

Re:Inconvenient Truths about TypeScript by ng12 on Tuesday July 18, 2023 @09:57AM (#36772319)
Because the good part of TypeScript is that it works seamlessly with the JavaScript ecosystem. Transpiled languages add too much friction.