You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which you are happening to be fixing by adding Set#addAll(). (Side note: In my opinion, it would be better to change the semantics of Set#add() to allow adding several elements, than to add Set#addAll(), if possible)
Why didn't I list Map#set() as an exception? Because Map#set() seems more like an assignment operation, like Object.defineProperty(). Although to be fair, there is enough room for Object.defineProperties() in the lang, so it may be a mistake I separate it. I suppose that's up to interpretation.
For consistent design, I think the proposed Map#merge() should allow: Map#merge(iterator1[, iterator2[, ...[, iteratorN]]]);. What do you think about this?
The text was updated successfully, but these errors were encountered:
It seems when doing joins, currently, the most common behavior is being able to join/merge a virtually unlimited number of other structures.
Examples:
Array#push(value1[, value2[, ...[, valueN]]]);
Array#unshift(value1[, value2[, ...[, valueN]]]);
Array#concat(array1[, array2[, ...[, arrayN]]]);
Object.assign(object1[, object2[, ...[, objectN]]]);
Exceptions:
Set#add();
Which you are happening to be fixing by adding
Set#addAll()
.(Side note: In my opinion, it would be better to change the semantics ofSet#add()
to allow adding several elements, than to add Set#addAll(), if possible)Why didn't I list
Map#set()
as an exception? BecauseMap#set()
seems more like an assignment operation, likeObject.defineProperty()
. Although to be fair, there is enough room forObject.defineProperties()
in the lang, so it may be a mistake I separate it. I suppose that's up to interpretation.For consistent design, I think the proposed
Map#merge()
should allow:Map#merge(iterator1[, iterator2[, ...[, iteratorN]]]);
. What do you think about this?The text was updated successfully, but these errors were encountered: