3 ms·
Typescript isn't all that differentiable from ES6. While I'm generally on the vanilla train, feeling fairly compelled to use it when messing around with angular
by lloyd-christmas 11y ago
Typescript isn't all that differentiable from ES6. While I'm generally on the vanilla train, feeling fairly compelled to use it when messing around with angular2 has made me very much appreciate it. Change your .js filename to .ts and it will still run, which makes the typing just an added bonus.
- dobs 11y agoWhich leaves me wondering why I'd use Typescript over sticking with ES6, especially with tools like Babel making many future features available right now and libraries like React actively making use of them.
- lloyd-christmas 11y agoYou shouldn't. My comment was in regards to readability of typescript vs coffeescript vs es6-javascript. If you don't want the added benefit of type-checking with minimal overhead, don't bother.
- squeaky-clean 11y ago> especially with tools like Babel making many future features available right now and libraries like React actively making use of them. You get all of this with Typescript, as well as optional types. If you're writing any Javascript at all, technically you're already writing Typescript.
- agumonkey 11y agoPeople told above, think of TS as a strong linter over normal ES6. Static typecheck is often very nice.