Re:Show HN: ES7 Decorator library adds types checking, memoi...
by untog on Sunday May 31, 2015 @10:25AM
(#9634252)
Interesting - I wonder whether TypeScript could compile down to this when ES7 is accepted and live in browsers. As it is, I do prefer the syntax of TypeScript.
[ Parent
| on HN ]
Re:Show HN: ES7 Decorator library adds types checking, memoi...
by jkrems on Sunday May 31, 2015 @11:21AM
(#9634416)
Afaik TypeScript is using https://www.npmjs.com/package/reflect-metadata to attach runtime type information, something angular asked them to do (there was no runtime information before). See also: https://github.com/Microsoft/TypeScript/issues/3148
Re:Show HN: ES7 Decorator library adds types checking, memoi...
by underwater on Sunday May 31, 2015 @11:08AM
(#9634379)
This does runtime checking. Flow and Typescript do static type checking. Which, as long as the systems are sound, means you don't need a runtime component.