On Feb 24, 2015, at 5:52 AM, Axel Rauschmayer wrote:
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`
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
On Tue Feb 24 2015 at 10:48:59 AM Allen Wirfs-Brock al...@wirfs-brock.com
wrote:
On Feb 24, 2015, at 5:52 AM, Axel Rauschmayer wrote:
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'])
As always with proposals to extend arity -- even if reserved by a thrown
error in a previous release -- how would you feature test for the extended
functionality?
I suspect the awkwardness of feature testing is one of the reasons why we
have not previously added new functionality by extending
On Tue Feb 24 2015 at 12:22:25 PM Mark S. Miller erig...@google.com wrote:
As always with proposals to extend arity -- even if reserved by a thrown
error in a previous release -- how would you feature test for the extended
functionality?
I suspect the awkwardness of feature testing is one of
On Tue, Feb 24, 2015 at 10:06 AM, Rick Waldron waldron.r...@gmail.com wrote:
On Tue Feb 24 2015 at 12:22:25 PM Mark S. Miller erig...@google.com wrote:
As always with proposals to extend arity -- even if reserved by a thrown
error in a previous release -- how would you feature test for the
or perhaps we should have Set.of(...args) and Set.from(iterable) methods.
I was under the impression that Array.of() was solely an apologetic patch
over Array()'s broken arguments interpretation, and not really an apogee
for future or present collection classes.
Regarding the main topic: I
Thanks for this additional context, Brendan. The block lambda revival was
particularly interesting to read up on. I understand why we went down the arrow
function path, but it’s fun to think about what ES6+ might look like had we
taken that different path.
I’d like to keep this proposal scoped
8 matches
Mail list logo