And why not just use

```js
const result = complexExpression();
const {a} = result;
let {b} = result;
```

and with arrays:

```js
const result = complexExpression();
const a = result[0];
let b = result[2];
```

If nothing else references `result`, it can be garbage-collected.

I don't see the need to add new syntax for this.

--Oriol

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to