[erlang-questions] Wanted additions to the maps module?

Loïc Hoguin essen@REDACTED
Fri Apr 8 21:01:03 CEST 2016

Iterators and map comprehensions would be great.

For example I receive JSON or equivalent coming in, convert to map and 
want to check the values (and sometimes convert types), and right now it 
goes through two conversions (to and from list).

I know it's not functionality per se but it's the limitation I'm most 
often seeing. It's followed by the map key in function head issue (the 
one binaries also have) and deep updates is only third. I'll also +1 
Jose's suggestion, that's a useful one to have.


On 04/08/2016 08:31 PM, Björn-Egil Dahlberg wrote:
> Hi there!
> I would like to know if you have any desires that we extend the current
> maps module with additional functionality?
> Have you repeated some code or built your own private lib to handle
> certain maps specific tasks and thought "why isn't this in the maps module?"
> I would like to know!
> There is still time before 19.0 to extend the current API.
> We have for example discussed adding {get, put, update,
> remove}_path type of functions where we handle nested maps. Would this
> be useful? Would it be used?
> What have we missed?
> // Björn-Egil
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

Loïc Hoguin
Author of The Erlanger Playbook,
A book about software development using Erlang

More information about the erlang-questions mailing list