4 ms·
Yes. It’s built by Microsoft and has huge adoption. Typescript is here to stay.
by slewis 6y ago
Yes. It’s built by Microsoft and has huge adoption. Typescript is here to stay.
- akie 6y agoWhat if most of TypeScript is embedded into the next version of JavaScript, as happened with Coffeescript?
- StrangeSound 6y agoThen there's not really a problem. You learned how it works, and now it's one less thing to worry about
- hombre_fatal 6y agoAlso, if Javascript got its own type system somehow (not gonna happen anytime soon), you could expect Typescript to compile to it. And you could transition off of Typescript just as gradually as you could transition on to it.
- zdragnar 6y agoTypescript offers almost no runtime behavior. With a few exceptions, everything is stripped out, and it only offers to transpile modern JS features to older browsers. CoffeeScript was all about an alternate syntax for runtime behavior. JS isn't going to get compile time anything. There was an attempt at adding "strong mode" by one of the google / chrome teams iirc and that went nowhere.
- Zarel 6y agoAll I really wanted was to allow type annotations in JavaScript. So you wouldn't need a compile step while running (JavaScript would just ignore the type signatures), but TypeScript could check it whenever. I believe this is the approach Python uses. I think there were discussions of doing that at some point, but it seems to have gone nowhere.