I’ve accidentally created the wrong set a few times:

```js
let set = new Set('red', 'green', 'blue');
    // WRONG: same as new Set(['r', 'e', 'd'])
```

Would it make sense to throw if either of the constructors `Set` and `Map` 
receives more than one argument?

-- 
Dr. Axel Rauschmayer
[email protected]
rauschma.de



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

Reply via email to