Oh.

Oh dear. *sigh*

Well, I do confess that there's nostalgic joy at the prospect of being
able to type:

let x=7

(which I don't think I've done since I last used BASIC back in I don't
know when. Around the 1800s, wasn't it?)

But I'm not sure I'd introduce a whole new keyword for it.

I'd probably make var scope work 'as commonly expected' - i.e.
block-level - in ES4 and throw in a compiler switch to turn it off for
backwards compatibility.

But I guess that could be 'as commonly expected - by me'. ;-)

Ian

On Thu, Mar 27, 2008 at 11:51 PM, Francis Cheng <[EMAIL PROTECTED]> wrote:
> Ian, help is on the way, the ECMAScript 4th edition draft specification
>  contains a new keyword, "let", that can be used in place of "var" to
>  provide block-level scoping. Details for the curious:
>
>  http://wiki.ecmascript.org/doku.php?id=proposals:block_expressions
>
>  Francis Cheng | Senior Technical Writer | Adobe Systems, Inc.
>  http://blogs.adobe.com/fcheng
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to