Map literal
Mohsen Azimi
me at azimi.me
Tue Oct 27 22:55:37 UTC 2015
I'm using Maps a lot now and I was thinking why there is no "easy" way of
declaring them like objects and arrays.
I'm sure I'm not the first one who came up with the idea of having Map
literal declaration. There are many ways we can introduce new syntax for
declaring Maps via a literal syntax such as:
```
let map = [window: 'window', document: 'document'];
```
or
```
let map = {{window: 'window', document: 'document'}}
```
and possibly many more.
I searched the discussions but couldn't find a topic on this. Have you
discussed this before?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151027/abebae50/attachment.html>
More information about the es-discuss
mailing list