[erlang-questions] Maps branch and disclaimers

Anthony Ramine n.oxyde@REDACTED
Wed Oct 30 14:02:07 CET 2013


Err, Arg#foo{bar=qux} fails with {badrecord,foo} when Arg is not a foo record.

A bad map update should fail with the atom badmap.

-- 
Anthony Ramine

Le 30 oct. 2013 à 13:58, Anthony Ramine <n.oxyde@REDACTED> a écrit :

> A bad record update (Arg#foo{bar=qux}) errors out with {badrecord,Arg}.
> 
> A bad map update should fail with {badmap,Arg}.
> 
> -- 
> Anthony Ramine
> 
> Le 30 oct. 2013 à 13:40, Robert Virding <robert.virding@REDACTED> a écrit :
> 
>> - generate 'badarg' errors instead of 'badmap' which would be consistent with other type errors.
>> 
> 




More information about the erlang-questions mailing list