3 ms·
Not really surprising. JavaScript-the-language is missing lots of features that could be useful, like operator overloading. Or any overloading, really. Nothing
by fuzzy2 4y ago
Not really surprising. JavaScript-the-language is missing lots of features that could be useful, like operator overloading. Or any overloading, really.
Nothing is stopping you from compiling JavaScript though, browsers do it. The lack of static types makes this harder, of course.
- beezlewax 4y agoSuppose you could use typescript and compile that?
- fuzzy2 4y agoYes and no. Yes that's possible but no, this is no longer (full) TypeScript. Check AssemblyScript on that topic, it's TS to WASM. Most of the dynamic code stuff isn’t allowed and, of course, there’s a different standard library underneath.
- deleted 4y ago[deleted]