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

David Mercer dmercer@REDACTED
Tue Feb 11 23:40:46 CET 2014


Thanks for that clarification.  I had asked on Reddit whether they would be a viable replacement for dicts, and that had been the answer.  Maybe I’ll try maps after all…

 

Cheers,

 

DBM

 

From: erlang-questions-bounces@REDACTED [mailto:erlang-questions-bounces@REDACTED] On Behalf Of Lukas Larsson
Sent: Tuesday, February 11, 2014 14:56
To: Erlang (E-mail)
Subject: Re: [erlang-questions] What is the difference between maps and dict in R17

 

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/4122c923/attachment.htm>


More information about the erlang-questions mailing list