This has been discussed multiple times, certainly in the Elixir Forum but I
believe in this mailing list too. I'd recommend reading the
previous discussions on the topic.


*José Valimhttps://dashbit.co/ <https://dashbit.co/>*


On Thu, Feb 5, 2026 at 3:13 PM 'Brandon Gillespie' via elixir-lang-core <
[email protected]> wrote:

> After all the conversations over the holidays around syntax sugar with
> maps, I took es6_maps out for a spin—and I have to say, I can't go back.
>
> Why isn't this just a core thing?
>
> It works flawlessly. Is so much simpler, and code is much more readable
> too.
>
> Compare/Contrast a very basic example. Before:
>
> ```
>     ...
>    |> Map.reduce(%{list: [], total: 0}, fn %{house: house, count:
> count}, %{list: list, total: total} ->
>      %{list: [%{house: house, count: count} | list], total: total + count}
>    end)
> ```
>
> After:
>
> ```
>     ...
>
>    |> Map.reduce(%{list: [], total: 0}, fn %{house, count}, %{list,
> total} ->
>      %{list: [%{house, count} | list], total: total + count}
>    end)
> ```
>
> I'm just curious what the opposition is, to having es6_maps just be
> merged into the mainline elixir things?
>
> -Brandon Gillespie
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/d/msgid/elixir-lang-core/fe90e58a-4668-49de-b0e6-2fc78a8d0298%40cold.org
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BwXHB9cJWoXsxq7K2Ox4LzWxFMJQ8prmYNSq2QSfgOZQ%40mail.gmail.com.

Reply via email to