5 ms·
Any plans to make JavaScript (the standard) strictly typed? (I know about TypeScript, etc.)
by SimeVidas 9y ago
Any plans to make JavaScript (the standard) strictly typed? (I know about TypeScript, etc.)
- WorldMaker 9y agoES4 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?