tc39 / proposal-optional-chaining

https://tc39.github.io/proposal-optional-chaining/
4.94k stars 75 forks source link

Similar mechanism for destructuring #19

Closed vilicvane closed 7 years ago

vilicvane commented 7 years ago

Is there any discussion on similar mechanism for destructuring usage? E.g.:

let {foo?: {bia, pia}} = bar;
gisenberg commented 7 years ago

There was some prior discussion here: https://github.com/tc39/proposal-optional-chaining/issues/6

I'll be talking about destructuring in the context of the optional chaining operator at TC39 this week.

vilicvane commented 7 years ago

@gisenberg Thanks for the reference. Interesting, I thought I had searched through the issues...