Then I could just write Typescript and run it on node/browser
Announcing TypeScript 2.1
21–30 of 226 posts
Re: Announcing TypeScript 2.1
#22It's interesting to me that all of the initial reactions I've seen to this announcement have been around the introduction of async and object spread, which are available with babel, but the typescript specific features such as mapped types are completely ignored. I don't really have any particular meaning behind that observation, only that it tickled my funny bone a little bit.
Re: Announcing TypeScript 2.1
#23If you still haven't given TypeScript a go as a Javascripter, now is a great time to do so. Whether you end up adopting it or not, it's interesting to get the types out of your mind and into the code. The first time you feel the speed/confidence of refactoring with accurate 'Find usages', you'll decide if the undeniable overhead of types is worth it.
If you don't like the C#-ness of Typescript, try using Facebook's flow. Typing isn't a magic bullet, typescript isn't even type safe, but it sure makes development easier and your apps more stable.
Re: Announcing TypeScript 2.1
#24 let merged = { ...foo, ...bar, ...baz };
But I've come to understand ... as variadic parameters in C++, Java and Go. Wish they'd used another token.Re: Announcing TypeScript 2.1
#25Seems like all of the new features have been available in Flow for quite a while now.
Re: Announcing TypeScript 2.1
#26Seems like all of the new features have been available in Flow for quite a while now.
Re: Announcing TypeScript 2.1
#27Seems like all of the new features have been available in Flow for quite a while now.
Re: Announcing TypeScript 2.1
#28Re: Announcing TypeScript 2.1
#29Feels like Typescript is building (or has built up?) more momentum than Flow.
Re: Announcing TypeScript 2.1
#30What I means is: I didn't know how to tell Babel which browsers I was targeting, and I'm pretty sure that some of their feature implementations do not feature test the platform before activating, since they were so compiled in. Is that the case?
Also, do you have to tell TypeScript your target runtime for it to it to use it's ES3 async/await logic vs. it's ES2015 (which uses generators), or does it automatically figure it out?