Rick Waldron (2014-10-01T20:26:02.000Z)
On Wed, Oct 1, 2014 at 3:51 PM, Jeremy Martin <jmar777 at gmail.com> wrote:

> Not sure if this is sufficient motivation to accelerate the timeline for
> adding suitable parallels from Array.prototype, but it may be worth
> recalling what developers did last time there were obvious "gaps" in what a
> native prototype provided.  Array#contains, anyone?
>

Also, if there are written proposals, the userland extensions (if they
really _must_ be) can follow those proposals.

Rick


>
> On Wed, Oct 1, 2014 at 3:28 PM, Axel Rauschmayer <axel at rauschma.de> wrote:
>
>> Then thing is: if we'd like to use maps for such use-case, it brings us
>> back to that inconvenient imperative style of assignments (even worse,
>> since you have to repeat that `.set(...)` constantly):
>>
>> ```
>> var requestData = new Map();
>> requestData.set(Names.ID, id);
>> requestData.set(Names.EMAIL, email);
>> requestData.set('needsReload', id);
>> ...
>> ```
>>
>>
>> Note that you can chain:
>>
>> ```js
>> var requestData = new Map()
>> .set(Names.ID, id)
>> .set(Names.EMAIL, email)
>> .set('needsReload', id);
>> ```
>>
>> Not too bad, IMO.
>>
>> --
>> Dr. Axel Rauschmayer
>> axel at rauschma.de
>> rauschma.de
>>
>>
>>
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>>
>
>
> --
> Jeremy Martin
> 661.312.3853
> http://devsmash.com
> @jmar777
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20141001/07a73181/attachment.html>
forbes at lindesay.co.uk (2016-02-01T12:30:16.741Z)
Also, if there are written proposals, the userland extensions (if they
really _must_ be) can follow those proposals.