[erlang-bugs] Maps behaving oddly on update syntax with literal

Anthony Ramine n.oxyde@REDACTED
Wed Feb 5 18:39:18 CET 2014


In erl_eval we have:

		({map_assoc,K,V}, Mi) -> maps:put(K,V,Mi);
		({map_exact,K,V}, Mi) -> maps:update(K,V,Mi)

Shouldn’t it be the opposite?

-- 
Anthony Ramine

Le 5 févr. 2014 à 18:25, José Valim <jose.valim@REDACTED> a écrit :

> 3> was supposed to fail. Note (#{})#{a := b} works in the shell (eval).



More information about the erlang-bugs mailing list