Aprobada la quinta edición de ECMAScript, una nueva especificación para JavaScript
La semana pasada fue aprobada la quinta edición de ECMAScript [size=9](vejam texto abaixo)[/size] (ECMA-262 5th edition), una nueva especificación para JavaScript. Se trata de la primera revisión mayor de la especificación del lenguaje JavaScript desde 1999. De las 21 partes con derecho a voto, sólo IBM votó en contra por la falta de soporte para operaciones con decimales, e Intel se abstuvo. Ahora, el próximo paso en la estandarización de la próxima versión de este lenguaje es enviar la especificación ha ISO, para que también sea aprobada por este organismo.
Con esto se rompe finalmente el atasco de la cuarta especificación de JavaScript, que debía haberse terminado en 2008, y que nunca llegó a convertirse en un estándar por falta de acuerdo entre las distintas partes.
Las dos novedades que más atrae mi atención en nueva especificación son el soporte para JSON y la posibilidad de “congelar” un objeto, impidiendo que sea modificado, mediante Object.seal() y Object.freeze(). Esta última característica sin duda será un pilar para reforzar la seguridad del lenguaje.
Aquí tenéis el PDF con la nueva especificación .
Fonte: http://www.javahispano.org/contenidos/es/aprobada_la_quinta_edicion_de_ecmascript__una_nueva_especificacion_para_javascript/
ES5 is an ECMA standard
Congratulations!
ES5 was officially approved as an ECMA standard at the ECMA General Assembly held at Google yesterday. The vote, with 2/3 required to pass, was 19 yes and 2 no, with IBM voting no due to the lack of decimal and Intel voting no because they didn’t have enough time to study the intellectual property implications of the standard.
Fast track submission to ISO was also approved by the ECMA General Assembly.
BSD licensing of ECMA copyright-owned code like the test suite also received quite a bit of debate at the General Assembly. The GA agreed to a postal ballot after the next Coordinating Committee meeting, assuming a proposal is made to them in time and they like it.
Waldemar
Fonte: https://mail.mozilla.org/pipermail/es-discuss/2009-December/010215.html
Resta saber quando os browsers o implementarão. E finalmente tomaram vergonha na cara e criaram um método trim() para String.
Mais uma nota:
New Standard for JavaScript After Years of Disagreement
After ten years with no major revision, the European Computer Manufacturers Association (ECMA) general assembly recently approved the ECMA-262 5th edition (ES5) spec as the ECMAScript standard. JavaScript, JScript, and ActionScript are the well-known dialects of ECMAScript.
The spec passed by a vote of 19 to 2, receiving less criticism than the unstandardized 4th edition. Only IBM and Intel voted against the proposal. IBM voted against the spec because of the lack of decimal and Intel didn’t have enough time to look over the intellectual property implications. The next step for the ECMA will be to submit the ES5 spec to the International Organization for Standardization (ISO).
The new standard now includes JavaScript Object Notation (JSON) as a component of ECMAScript. Objects in the new ECMAScript can be shielded from manipulation with Object.seal() and Object.freeze(). The interpreter will now enforce tougher rules in “use strict” mode. Undeclared variables, for example, will not be executed.
Progress for ECMAScript has been hindered by disagreements and controversy over the last few years. The fourth edition of ECMA-262, originally targeted for completion by October 2008, would have been the first major update to ECMAScript since the third edition became standard in 1999. The fourth edition was derailed when a debate between Chris Wilson, Microsoft’s platform architect for Internet Explorer, and Brendan Eich, the creator of JavaScript who is now the CTO for Mozilla, surfaced on multiple blogs. Wilson said that the backwards incompatibility of EC4 would result in “breaking the Web,” while Eich gave examples of why that wouldn’t happen.
As a result, Microsoft, Yahoo, and other opponents of EC4 formed their own camp to design a smaller update for ECMAScript 3 initially called ECMAScript 3.1. The two camps tried to develop their specs in parallel but differing philosophies kept both specs from being standardized for over a year. The two teams finally reached a compromise in August 2008: the ECMA Technical Committee 39 (TC39) would focus on ECMAScript 3.1, renamed edition 5. The recent approval of the EC5 spec is the fruition of many years of obstacles and compromise.
The fourth edition is not dead yet though. In 2008, the project was renamed ECMAScript Harmony and will be more modest than the previous EC4 proposal. The spec will include syntactic extensions but won’t include several packages, namespaces, and early binding from ECMAScript 4. Harmony might be renamed ECMAScript 6th edition now that the 5th edition is the most recent standard.
Fonte: http://css.dzone.com/news/new-standard-javascript-after
:?: Quando diz “Undeclared variables, for example, will not be executed.” significa então que todas as variáveis deverão ser declaradas com “var”? Devo ler melhor a específicação.
chun
Dezembro 10, 2009, 8:53am
#3
Será que agora teremos “um javascript só” ? Ou teremos a versão 5.IE , 5.FIREFOX , 5.CHROME ?
FrancoC
Dezembro 10, 2009, 4:30pm
#4
Acho dificil… da Microsoft nao espero nada, nenhum esforco pelo bem coletivo… hehehe
[b]Espero que finalmente consigam padronizar, pois é duro trabalhar com JS… E olha que não só eu que acho…rs
Abraço[/b]
rbcunha
Dezembro 10, 2009, 10:14pm
#6
Agora a Microsoft irá criar JavaScript 5 EX Tabajara e adicionar no IE 9…