Oops, missing one line below:

Brendan Eich wrote:
Which one? If you mean let*, so that

  function f(a = a, b = b*a) { return [a, b]; }
  var a = 42;

var b;

  console.log(f()) // [42, NaN]
  console.log(f(1)) // [1, NaN]
  console.log(f(1,2)) // [1, 2]

Otherwise b*a will throw on unbound b.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to