« Bugzilla Issues Index
#1110 — Return |this| from collection mutator methods
- bug_id:
1110
- creation_ts:
2012-12-02 11:14:00 -0800
- short_desc:
Return |this| from collection mutator methods
- delta_ts:
2013-03-08 14:44:20 -0800
- product:
Draft for 6th Edition
- component:
new feature
- version:
Rev 12: November 22, 2012 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Rick Waldron
- assigned_to:
Allen Wirfs-Brock
- cc:
waldron.rick
- commentid:
2976
- comment_count:
0
- who:
Rick Waldron
- bug_when:
2012-12-02 11:14:43 -0800
Per Nov 29 Resolution:
Update the following APIs to return |this|:
Map.prototype.set
Set.prototype.add
WeakMap.prototype.set
It also makes sense to include delete methods as well, for the same reasons as the set/add methods.
- commentid:
2977
- comment_count:
1
- who:
Rick Waldron
- bug_when:
2012-12-02 11:15:06 -0800
Forgot the rationale...
Consensus… with the criteria that these methods are not simply a set of uncoordinated side effects tat happen to have a receiver in common, but a set of coordinated side effects on a specific receiver and providing access to the target object post-mutation.
- commentid:
3276
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-05 16:55:21 -0800
fixed in rev 14 editor's draft
- commentid:
3351
- comment_count:
3
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-08 14:44:20 -0800
in Rev 14 draft