Hacker News new | ask | show | jobs
by novaleaf 4259 days ago
Typescript is ECMAScript6, with additional (typing) features.

I'd venture it's ecmascript 6 being used, as Google suffers NIH syndrome too..

2 comments

I wouldn't call TypeScript an "ECMAScript 6 with types". It feels more like a superset of ECMAScript 5 as it introduces non-standard features such as static class properties and public/private scoping while major ES6 features such as proxies, symbols, generators, modules or block scoping are not supported.
Yeah, it definitely is EcmaScript 6. They've added the "class" and "constructor" keywords. Typescript is very mush modeled after EcmaScript 6 anyways, so technically it can be both. But I'm sure it's EcmaScript6, because that's what Angular 2 is written in.
See the post about Google's AtScript that was on HN yesterday.
So is this basically TypeScript with annotations and types available at runtime?