[erlang-questions] map elements in defined order

José Valim jose.valim@REDACTED
Thu Oct 26 21:42:40 CEST 2017


> Our "sister language" Go *randomizes* iteration order on its maps. This is
> to force programmers into not relying on the map order at all, even if it
> happens to be ordered right now. This opens up implementations in the
> future.
>

Randomizing how elements are stored/hashed is also useful to avoid hash
collision attacks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171026/34f88225/attachment.htm>


More information about the erlang-questions mailing list