|
|
|
|
|
by dlbucci
1553 days ago
|
|
This topic came up earlier this week, and I just don't see what the big win is. I guess people want to be able to skip setting up a build system for TypeScript, but if you do that, you'll be sending a bunch of extra junk to browsers that will just be ignored. So you'll need to setup a minifier to strip it all out, which means you have to setup a build system anyway. Is there some other advantage? Easier debugging on the client, I guess, but proper source maps do that pretty well already. I dunno, this just seems to be making a complex language more complex for not much gain. That said, if the runtime actually used the types for safety or performance, I could maybe see some value added there. |
|
And sending few percent of JavaScript is not an issue. It's gzipped well and it's not what will slow down the website.
For example I really love that I can just write modern JavaScript and just send it to the browser and it works.
Serious websites of course will use minifiers and stuff, but for some small sites it's unnecessary burden.