3 ms·
> I wonder if some of the people here, that like Typescript just fine, would consider less main-stream typed-js solution. Would love to but TypeScript integrat
by virtualwhys 8y ago
> I wonder if some of the people here, that like Typescript just fine, would consider less main-stream typed-js solution.
Would love to but TypeScript integrates so seamlessly with JavaScript the language, and the ecosystem, that it's difficult to justify using my preferred language (Scala/Scala.js).
Another thing to note is that working TypeScript with JavaScript feels idiomatic; I can't say that for any other typed-to-js language I've seen or worked with.
Finally, the ecosystem, this is the deal breaker. With TypeScript it's similar to languages on the JVM, you get a huge ecosystem for free. The alternative is manually writing wrappers/interfaces for JavaScript libraries, or, if you're lucky, interface generators are available, but even then there are often caveats/tweaks required to get things working as expected.