frozen v. mutable
Mark S. Miller
erights at google.com
Tue Jun 17 09:18:56 PDT 2008
On Tue, Jun 17, 2008 at 8:53 AM, Lars Hansen <lhansen at adobe.com> wrote:
>> From: es4-discuss-bounces at mozilla.org
>> [mailto:es4-discuss-bounces at mozilla.org] On Behalf Of Brendan Eich
>> Did we agree to allow undefined be read before the
>> declaration was evaluated? I thought at least Waldemar wanted
>> const use before def always to be an error, in standard as
>> well as strict mode.
>
> That is indeed the current ES4 design; reading before initialization
> always causes an error to be signalled. Ditto for 'let'. And of
> course const properties are write-once, there's no need to initialize
> it in the definition.
My mistake. I'm happy to have it always throw.
--
Cheers,
--MarkM
More information about the Es4-discuss
mailing list