Map literal

Herby Vojčík herby at mailbox.sk
Wed Oct 28 12:04:47 UTC 2015



Herby Vojčík wrote:
> OTOH, there could be consistent contraproposal of:
>
> ```
> Object#{foo(42) + 7: "bar"}
> null#{foo(42) + 7: "bar"}
> #{foo(42) + 7: "bar"}
> ```
>
> where the first is equivalent to {[foo(42)+7]: "bar"}, the second is
> pure container (Object.create(null)) filled with properties, and the
> third is the default case, but I don't know which of the previous two -
> the first is probably less confusing, though the feels more clean.
... though the second feels more ...


More information about the es-discuss mailing list