[erlang-questions] map elements in defined order

Sverker Eriksson sverker.eriksson@REDACTED
Fri Oct 27 15:34:59 CEST 2017

On 10/27/2017 04:04 AM, Richard A. O'Keefe wrote:
> The current thread has left me somewhat confused.
> Suppose E1 and E2 are different computations,
> delivering maps M1 and M2 respectively, such
> that M1 =:= M2 is true.
> Are we guaranteed that term_to_binary(M1) and
> term_to_binary(M2) are equal binaries?

No. term_to_binary does not give any such guarantees.

And in the case where M1 and M2 were created by different VM instances, 
you can with current implementation get different binaries.


More information about the erlang-questions mailing list