[Laszlo-dev] LPP-6098: JS2
P T Withington
ptw at pobox.com
Thu Jun 5 04:44:18 PDT 2008
[cc-ing Don, Laszlo-dev: feel free to pitch in here!]
On 2008-06-05, at 06:12 EDT, Lou Iorio wrote:
> http://www.openlaszlo.org/jira/browse/LPP-6098
>
> From JIRA:
>
> "JS2 is not explicitly mentioned anywhere as far as I can tell, but
> each method declaration uses JavaScript 2-style type declarations.
> JS2 and typing would likely need to be added to the "Language
> Preliminaries" section of the dev guide. It currently contains
> obsolete information in the JavaScript section and should be updated
> to mention that JavaScript in LZX supports a set of JS2 features."
>
> Currently, we say this in the Language Preliminarys chapter of the
> dguide:
>
> LZX incorporates a partial implementation of the ECMA-262 Edition 3
> specification.
>
> We also provide a history of JavaScript and ECMAScript that seems
> like too much detail to me.
URL? I don't know my way around the doc like you.
> The chapter ECMAScript in the dguide provides a lot more, including
> the differences between LZX
> and ECMAScript.
>
> Has this changed? What should we really say?
Give me an URL and I'll tell you. I think I updated this page
recently, as it used to basically be a list of the ES things that we
could not support on swf5. What LPP-6098 is complainint about is that
we have added a small subset of the things being proposed for JS2/
ES4. Unfortunately, this is not a standard yet, so we can't just
reference it (drafts exist: http://www.ecmascript.org/es4/spec/overview.pdf)
In particular, the things we have added include:
1) Class declarations
2) Type annotations
3) Additional operators: `is` and `cast`
4) Optional and rest parameters for functions
[There may be others, but that's what came off the top of my head.]
More information about the Laszlo-dev
mailing list