4 ms·
ES4 tried. Typescript, Flow, and ActionScript's type annotations all inherit almost directly from ES4 (though each diverged to different paths). I think the ne
by WorldMaker 9y ago
ES4 tried. Typescript, Flow, and ActionScript's type annotations all inherit almost directly from ES4 (though each diverged to different paths).
I think the next step would be to see someone champion through TC39 the "Python model" where browsers/engines should at least parse and ignore type annotations per spec. Then at least you could pass Typescript/Flow annotated code directly to a browser, even if the browser/engines don't immediately do anything with those extra annotations.
- nojvek 9y agoThis * 1000. I believe there were some proposals but they never made it past strawman proposal. Just interface {}, as Y, and :type annotations in JavaScript would take us very far. On that note, how does one even submit an ecmascript proposal?