-
short_maps
Discontinued ⚠️Retired⚠️ library that provided a ~m sigil for ES6-like map destructuring in Elixir.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
This was done previously with the `short_maps` library, which the author—a member of the Elixir core team—eventually retired and archived due to regrets from the undesirable impacts on clarity.
https://github.com/whatyouhide/short_maps
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
I've been using Destucture [1] for a few years. It's an interesting compromise that works for atom and string keys because it's explicit, kind of like the sigil approach. Though this seems way more streamlined, especially as someone who uses JS for front-end apps.
[1]https://github.com/danielberkompas/destructure/
Related posts
-
Ask HN: Why isn't Phoenix/Elixir more mainstream?
-
Working with JSON files
-
How do you deal with manipulating deep / complex data structures in Elixir?
-
A library for performing fast actions with nested data structures in Elixir
-
Are there any open source Elixir projects that I could help with as a beginner?