Forwards-compatible syntax proposal
Mike Shaver
mike.shaver at gmail.com
Mon May 26 06:45:25 PDT 2008
On Mon, May 26, 2008 at 9:37 AM, Nathan de Vries <nathan at atnan.com> wrote:
> i.e. Can a chunk of ES4 defined in a <script type="application/
> javascript;version=2" /> block interact with ES3 code defined in a
> <script type="application/javascript" /> block? Has this behaviour
> been decided on?
Yes, that's been a major part of the design of the language; toolkits
need to be able to upgrade to ES4 features without making the
consumers upgrade wholesale, and vice versa.
http://www.ecmascript.org/es4/spec/evolutionary-programming-tutorial.pdf
has an example of how ES4 and ES3 code styles interact, and splitting
the sample program into separate <script> blocks should work just as
well as it does in with ES3 today.
Mike
More information about the Es4-discuss
mailing list