On 31 January 2012 19:23, Brendan Eich <[email protected]> wrote:
> I bet the "mode" was what got Sam's attention (mine too) in your "classic
> mode". We are not making hard mode walls or version opt-in. No engine will
> have a mode enum that must be advanced (implicitly or explicitly) and
> checked in order to tell what to do in unversioned script. Or so we think!

I'm afraid that I still fail to get this argument. When you compile an
individual function in ES6, you will need to have a 3-valued enum
around saying whether it resides "in strict scope", "in non-strict
scope", or "in module scope". Similarly, if you are human and read a
piece of code. No news there. Whether that is called "mode" or
"context" or something else seems pretty much immaterial.

(I'm saying 3-valued, because Dave was alluding to additional static
checks inside modules. It may be that 2 values keep being enough.)

/Andreas
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to