| ▲ | Curosinono 5 hours ago | |||||||
I don't get it why the hell is TypeScript still not nativly supported in modern browsers? | ||||||||
| ▲ | WorldMaker 5 hours ago | parent | next [-] | |||||||
Because standardization is a political process that takes time and consensus to achieve? | ||||||||
| ▲ | vmg12 5 hours ago | parent | prev | next [-] | |||||||
Likely because everybody would still strip types, bundle and minify their typescript code anyway. | ||||||||
| ▲ | hollowturtle 5 hours ago | parent | prev | next [-] | |||||||
Because "it doesn't exist". It's just a layer on top of js, it doesn't have its own runtime, and btw what would supporting ts a the browser level mean? If you want to support a static typed language then you could just compile it down to wasm, if you just want to support types and ignore them at runtime there's an overhead price to pay, or should do runtime type checking? And with which tsconfig? Strict or not? | ||||||||
| ||||||||
| ▲ | yoyohello13 4 hours ago | parent | prev | next [-] | |||||||
My gripe is why doesn't Webassembly fully support dom manipulation. If we got that working anyone could just bring any language to the browser and we would finally be free from the shackles of JS. | ||||||||
| ▲ | tuananh 5 hours ago | parent | prev | next [-] | |||||||
JS promise to never break the web. can't say the same about TS | ||||||||
| ▲ | IshKebab 4 hours ago | parent | prev | next [-] | |||||||
There wouldn't be any benefit. It's not sound so it can't really be used to improve performance. There was a proposal to support TypeScript syntax, but ignore the actual types (this is basically how Python works). That would be kind of nice because you can skip the compilation step completely (less faff for small projects), but I don't think it went anywhere... or if it is it's getting there at a snail's pace: | ||||||||
| ▲ | 2 hours ago | parent | prev [-] | |||||||
| [deleted] | ||||||||