HTML5 Zone is brought to you in partnership with:

Dr. Axel Rauschmayer is a freelance software engineer, blogger and educator, located in Munich, Germany. Axel is a DZone MVB and is not an employee of DZone and has posted 246 posts at DZone. You can read more from them at their website. View Full User Profile

A first look at what might be in ECMAScript 7 and 8

09.19.2011
| 3790 views |
  • submit to reddit

Brendan Eich mentions features that are candidates for ECMAScript 6, 7 and 8:

It is interesting that the goal of some features is to make JavaScript a better compilation target [2]. I am very excited about macros possibly making it into ECMAScript 8. Just three benefits:
  • Easily create embedded domain-specific languages (for HTML fragments, queries, GUI definitions, etc.).
  • Invent new more concise syntax for specific tasks (this one is mainly for – gifted – library authors). If you wanted to, you could also call the result a domain-specific language.
  • Any new syntax introduced after ECMAScript 8 can be retrofitted to previous versions via macros.

Related reading:

  1. ECMAScript.next: the “TXJS” update by Eich
  2. What is the JavaScript equivalent of Java bytecode?

 

From http://www.2ality.com/2011/09/es6-8.html

Published at DZone with permission of Axel Rauschmayer, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)