Comment on Is a web browser using another scripting language feasible?
jol@discuss.tchncs.de 3 weeks agoTypescript doesn’t run on the browser. But I’m pretty sure we will see native typescript soon. At this point, TS is practically the industry standard for developing serious JavaScript.
CameronDev@programming.dev 3 weeks ago
I dunno, I don’t see the benefit to native TS in the browser. For compatibility, all sites will continue to serve JS, so what does TS gain anyone? And there is no performance benefit, maybe a performance hit given none of the type validation can happen until all of the scripts have downloaded, so execution can’t begin until that has happened?
I could be way off on this though, I’m not a webdev :/
jol@discuss.tchncs.de 3 weeks ago
Type assertion in runtime would be really useful
CameronDev@programming.dev 3 weeks ago
Can you even get runtime type assertions in TS? Isnt it all at compile time?
jol@discuss.tchncs.de 2 weeks ago
That’s my point… You’d need native TS support for that