Totally minor, but

```
const {a, b} = o;
b = 1;
```

Complains that `b` is `const` and can't be assigned.

```
let {a, b} = o;
b = 1;
```

Now lint complains that `a` is never modified, and ought to be `const`.

So I would like to write:

```
const {a, let b} = o;
b = 1;
````

or alternatively

```
let {const a, b} = o;
b = 1;
````
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to