ECMAScript Fight Results in 'Harmony'
- By John K. Waters
Eich dubbed this larger, successor edition to ES3.1 "ES Harmony." That name, he said, was also meant "to describe the united committee and the agreements we reached." In his widely read blog post announcing the Ecma Committee's decision, he declared that the switch to Harmony was "good news for everyone."
"[The committee's decision] does mean that some of the ideas going back to the first ES4 proposals in 1999, implemented variously in JScript.NET and ActionScript, won't make it into any ES standard," Eich wrote. "But the benefit is collaboration on unified successor specifications to follow ES3, starting with ES3.1 and continuing after it with larger changes and improved specification techniques."
ES4 would have been a major fourth edition to the ECMA-262 specification. Proponents of this path advocated an ongoing evolution that would requires new syntax and possibly even new semantics. They sought to include things like stronger support for specifying the type of each variable, which is a more structured approach that's required by languages such as Java. They were also favored support for more sophisticated namespaces or packages that would prevent conflicts when two developers inadvertently use the same name for different methods. Advocates for the ES3.1, which is based on the existing ECMA-262 Edition 3 specification, pushed for a more model evolution.
The Ecma TC39 meeting held in Oslo at the end of July ended with a resolution to focus on four tasks, Eich reports:
- The shift to ES3.1, "with full collaboration of all parties," aiming for two interoperable implementations by early next year.
- Collaboration on the next step beyond ES3.1, "which will include syntactic extensions, but which will be more modest than ES4 in both semantic and syntactic innovation."
- The abandonment "for good" of several ES4 proposals, which the committee deemed "unsound for the Web," including: packages, namespaces and early binding.
- Rephrasing other goals and ideas from ES4 to keep consensus in the committee, including "a notion of classes based on existing ES3 concepts combined with proposed ES3.1 extensions."
In his blog post on the Ecma Committee decision, Dave McAllister, Adobe's director of Standards and Open Source, rejected claims circulating in the blogosphere that Adobe had lost this standards battle. He wrote: "[W]e agree with the necessity of the Ecma TC39 ES Harmony effort. We'll continue to be involved, in both ES Harmony and in future generations of ECMAScript. We will track Ecma efforts within ActionScript, but won't stop innovating ActionScript, which millions of developers rely on and is key to so many incredible Web experiences today."
Most parties to this decision seem to agree that the evolution of ECMAScript after the publication of the ECMA-262 spec in December 1999 had stalled while the Web itself continued to develop.
"I hope [the committee's decision] it will allow the language to evolve, finally, after nine years of stagnation," Eich said. "ES3.1 is just a good start; we need that major successor standard that we agreed to in Oslo…"
John K. Waters is a freelance writer based in Silicon Valley. He can be reached