Extensions in ES5 strict mode (was: No more modes?)

Erik Corry erik.corry at gmail.com
Thu Oct 14 00:08:09 PDT 2010


My thoughts for what they are worth:

The semantics for const in Harmony are likely to be silently different
in Harmony from the semantics it has in non-strict current
implementations.  (In particular the current const is hoisted to the
surrounding function, whereas the one in Harmony won't, so the
shadowing will be different.)

Given this silent behavioural change it would be advantageous to flush
out existing uses of const before Harmony arrives and gives it a new
meaning.

Forbidding const in strict mode would seem to be a way to do that.

-- 
Erik Corry, Software Engineer
Google Denmark ApS - Frederiksborggade 20B, 1 sal,
1360 København K - Denmark - CVR nr. 28 86 69 84


More information about the es-discuss mailing list