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.

Reply via email to