Confirmed users
455
edits
(New page: == If browsers implement ES4, will it break my existing scripts? == No. The ECMA committee chartered to develop and maintain the ECMAScript specification, known as "TG1", has taken compa...) |
No edit summary |
||
| Line 7: | Line 7: | ||
== Do I have to upgrade all my script to ES4 at once? == | == Do I have to upgrade all my script to ES4 at once? == | ||
No. | No. | ||
Significant effort has gone into ensuring that ES4 code and ES3 code can interoperate simply, including preservation of type and other integrity measures. You can upgrade your code piecemeal as you need and want to use new ES4 capabilities, and don't need to give up your existing ES3 libraries or application code to do so. | |||
== Who is designing ES4? == | == Who is designing ES4? == | ||
| Line 23: | Line 25: | ||
== Will ES4 require me to specify types, or stop changing the properties of my objects dynamically, as I do today with ES3? == | == Will ES4 require me to specify types, or stop changing the properties of my objects dynamically, as I do today with ES3? == | ||
No. | No. | ||
Even if an author opts into ES4's syntax-incompatible features as mentioned above, it's still up to them to use types, various "fixed binding" features such as classes and intrinsics, and any other ES4 feature as they choose. All the dynamism of ES3 is still available to script authors, but they will now also have options for reducing that dynamism or placing restrictions on how their code can be used, in order to improve security, performance, or reliability of their applications. | |||
== Are there implementations of ES4? == | == Are there implementations of ES4? == | ||
There are no complete implementations of ES4 as of this writing. The TG1 committee is building a reference implementation in parallel with development of the specification, as a means of proving out various design decisions and providing a tool (albeit a slow one) for developers to use in exploring the language. The Tamarin project is another open-source ES4 implementation, which is being developed chiefly by Mozilla and Adobe for use in future Firefox and Flash Player products. There may be other ES4 implementations underway internal to different organizations, as well. | There are no complete implementations of ES4 as of this writing. The TG1 committee is building a reference implementation in parallel with development of the specification, as a means of proving out various design decisions and providing a tool (albeit a slow one) for developers to use in exploring the language. The Tamarin project is another open-source ES4 implementation, which is being developed chiefly by Mozilla and Adobe for use in future Firefox and Flash Player products. There may be other ES4 implementations underway internal to different organizations, as well. | ||