archives

« Bugzilla Issues Index

#3248 — Static typed system.


What about adding to ecmascript static typed system. Javascript is very good and flexible language, but it has some performance issues. If it'll have static typed system issues will reduce. Many people wanna this, so were created a lot of languages that compiling to js, but with static typed system: typescript, dart, etc. Also Mozilla introduced new project named `asm.js` (asmjs.org), but it's created on hack as I think. I think it could be something like this specification: http://wiki.ecmascript.org/doku.php?id=strawman:types&s=static+types


@Roman It largely is, but mainly to provide backwards compatibility with engines that don't recognize the types (only Firefox properly optimizes specifically for it). Also, I think the mailing list (es-discuss@lists.mozilla.org) may be a better place to suggest this kind of thing.


Both the pros and and cons of static typing is is well known by TC39 members and various projects are underway by TC39 members that investigate possible future enhancements to ECMAScript related to "types"

Thanks for the input.

I;m going to close this general bug, for now, since it is too broad to really be actionable. In the future there will likely be new tickets opens for specific feature work