On Thu, Oct 4, 2012 at 8:16 PM, Brendan Eich <[email protected]> wrote:

> Nicholas C. Zakas wrote:
>
>> I agree, I'm not sure there is a rational default for Map, but I think
>> there is one for Set as an array (and it seems like most people agreed).
>>
>
> As with Set, I claim the default JSON for Map should be
>
>   [[key1, value1], ~~~ [keyN, valueN]]
>


I'm still curious about my question from yesterday; instead of repasting, I
put it in a gist:

https://gist.github.com/3837337


Rick



>
> with ~~~ as meta-ellipsis.
>
> This is not a round-tripping seralization, any more than
>
>   [elt1, ~~~ eltN]
>
> is for Set. It simply is the normal form expected by the Map constructor.
> That wins.
>
> /be
>
> ______________________________**_________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to