|
|
|
|
|
by kzemek
762 days ago
|
|
There was also a relatively popular fork shorter_maps [0], mentioned in the blog post above. My motivation for implementing es6_maps instead of using/updating shorter_maps was (I'm copying from my post in the Elixir forums [1]): 1. I do firmly believe this is a good language feature and a very natural extension of map literals syntax; 2. at the same time, being a language feature it should be simple - es6_maps works only with atom keys and has no extra features over the key expansion. Point 1 is additionally reinforced by how easy it was to introduce to the compiler - I’m injecting just 9 lines of simple code, while parser and lexer already accept short-form maps without modifications. [0] https://github.com/meyercm/shorter_map
[1] https://elixirforum.com/t/es6-maps-ecmascript6-style-shortha... |
|