3 ms·
> In that case, they can remove all JS weirdness from it, simplify it, add a proper standard library, and add other good parts from other (especially functional
by lmm 4y ago
> In that case, they can remove all JS weirdness from it, simplify it, add a proper standard library, and add other good parts from other (especially functional) languages to it.
Have you tried Scala.js? It's pretty much what you're asking for - a first-class functional language with all the things you'd expect from that, with compile-to-JS as something that works and feels fully first-class (and good integration with TypeScript types via ScalablyTyped).
- prmph 4y agoScala.js seems interesting, and I will look into it more. But if it is so nice, why hasn't it taken off like TypeScript?
- lmm 4y agoScala was traditionally a backend language (and has a bit of an image problem, and some genuine community politics troubles), and isn't so well known on the front end side. I do believe it's genuinely the best language going though.
- matt_kantor 4y agoI think a big part of TypeScript's success is because it's just "JavaScript with types".