Allen Wirfs-Brock (2014-10-01T17:00:46.000Z)
On Oct 1, 2014, at 9:43 AM, Oliver Hunt wrote:

> 
>> On Oct 1, 2014, at 9:05 AM, Mark S. Miller <erights at google.com> wrote:
>> 
>> Good point. If we can require all such assignments to be rejected statically, why is a runtime assignment to a const variable even possible? Can't we just assert that this cannot occur?
> 
> You mean duplicate assignment? IIRC the problem is code that does
> 
> const x;
syntax error: no initializer

> x=blah;
> 
> or 
> 
> if (foo)
>     const x = bar
syntax error: not a statement
> else
>     const x = wiffle
syntax error: not a statement
> 
> etc
> 

Allen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141001/848b4b68/attachment.html>
domenic at domenicdenicola.com (2014-10-15T18:43:00.191Z)
On Oct 1, 2014, at 9:43 AM, Oliver Hunt wrote:

> ```js
> const x;
> ```

syntax error: no initializer


> ```js
> if (foo)
>     const x = bar
> ```

syntax error: not a statement

> ```js
> else
>     const x = wiffle
> ```

syntax error: not a statement