[erlang-questions] What is the difference between maps and dict in R17

Lukas Larsson garazdawi@REDACTED
Tue Feb 11 21:56:12 CET 2014


Maps does not have a syntax for variable keys, that does not mean that you
cannot have variable keys. Using the maps module you can add and get any
keys you want to a map.

Lukas


On Tue, Feb 11, 2014 at 9:12 PM, David Mercer <dmercer@REDACTED> wrote:

> Also, maps cannot have variable keys.
>
>
>
> Cheers,
>
>
>
> DBM
>
>
>
> *From:* erlang-questions-bounces@REDACTED [mailto:
> erlang-questions-bounces@REDACTED] *On Behalf Of *Jesper Louis Andersen
> *Sent:* Friday, February 07, 2014 06:39
> *To:* 用户
> *Cc:* Erlang (E-mail)
> *Subject:* Re: [erlang-questions] What is the difference between maps and
> dict in R17
>
>
>
> In the long run, maps may probably subsume dict and gb_trees. In the short
> term they won't since maps currently is not optimized for a large number of
> keys.
>
>
>
> On Fri, Feb 7, 2014 at 10:19 AM, 用户 <zehongzheng2008@REDACTED> wrote:
>
> Both of maps and dict are used as map, so when and where to use maps?
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
>
>
> --
> J.
>
> _______________________________________________
> 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/20140211/912211da/attachment.htm>


More information about the erlang-questions mailing list