On Oct 1, 2014, at 9:43 AM, Oliver Hunt wrote: > >> On Oct 1, 2014, at 9:05 AM, Mark S. Miller <[email protected]> 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
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

