Refutable destructuring

Brendan Eich brendan at mozilla.com
Tue Aug 13 14:31:43 PDT 2013


Andreas Rossberg wrote:
> As I said in my reply, I'm totally fine with what you describe in that
> mail. But correct me if I'm wrong, that_is_  refutable destructuring,
> isn't it? All you seem to drop is the optional irrefutable part (the
> '?' feature). That's why I am quite confused about Brendan's statement
> above.

Possibly I missed something (I was at the meeting on the 2nd and 3rd 
days but not day 1).

Allen, what does your latest draft do on

   var {p} = {};

Throw, or bind p to undefined?

/be


More information about the es-discuss mailing list