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

Felix Gallo felixgallo@REDACTED
Fri Apr 8 21:25:08 CEST 2016

Concurring with Loïc and José, all of their ideas would be outstanding.

Perhaps slightly longer term/more generically, it would be nice if a maps
Lens implementation made its way into core.  ROK's lens.erl (
http://www.cs.otago.ac.nz/staffpriv/ok/lens.erl) is a pretty great start,
but shipping a blessed Lens would be even better.


On Fri, Apr 8, 2016 at 12:01 PM, Loïc Hoguin <essen@REDACTED> wrote:

> 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.
> Cheers,
> 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
> http://ninenines.eu
> Author of The Erlanger Playbook,
> A book about software development using Erlang
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160408/5baf3a15/attachment.htm>

More information about the erlang-questions mailing list