On Thu, Jul 10, 2008 at 11:05 AM, Brendan Eich <[EMAIL PROTECTED]> wrote:

So what would this program print in ES3.1?
>
> const C = 42;
> function f(x, y) {
>   const C = 33;
>   if (x) {
>     const C = 21;
>     return eval(y);
>   }
>   return C;
> }
> print(f(true, "C"));
>

21

What does it print in ES4-opt-in?



>
> > In a latter revision, we would expect to also add block-scoped let
> > declaration to enable block scoped variables.
> >
> "latter revision" is spelled E-S-4 :-P.
>

;)

Kidding aside, if we could somehow agree on one language, I would want it to
have ES4-opt-in's "let".


-- 
Cheers,
--MarkM
_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to