(Map|Set|WeakMap)#set() returns `this` ?

Andreas Rossberg rossberg at google.com
Fri Dec 7 01:32:15 PST 2012

On 6 December 2012 18:38, Rick Waldron <waldron.rick at gmail.com> wrote:
>> I agree with other voices in this thread that in general, returning
>> 'this' rather is an anti pattern.
> The evidence I've brought to this discussion shows that the most widely used
> and depended upon libraries heavily favor the pattern.

That's not necessarily a contradiction. ;)


More information about the es-discuss mailing list