Toplevel 'let' binding can be left permanently uninitialized after an error
Mark S. Miller
erights at google.com
Tue Sep 30 08:40:15 PDT 2014
Likewise. E is also a scripting repl language with dynamic types and static
scopes. We tried a variety of different ways to handle the top level repl
and nested scopes were best.
On Sep 30, 2014 4:04 AM, "Andreas Rossberg" <rossberg at google.com> wrote:
> On 30 September 2014 12:52, Jason Orendorff <jason.orendorff at gmail.com>
> > I just realized this has an unfortunate implication for REPLs. Suppose
> > you make this typo:
> > js> let x = Math.cso(a) // oops, TypeError, should be Math.cos
> > Now x is irreparably hosed in your REPL. That seems bad.
> No surprise. One of the reasons why I always favoured a nested scopes
> model for multiple scripts...
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss