[erlang-bugs] Missing comma between maps results in merge

Knut Nesheim knutin@REDACTED
Tue Jul 1 16:26:54 CEST 2014


Hi,

I was recently bitten by a combination of my own mistakes and a unexpected
syntax with maps. I'm not sure if this is a bug or intended behaviour.

1> #{foo => bar, foo => quux}.
#{foo => quux}
2> #{foo => bar} #{foo => quux}.
#{foo => quux}

In the second case, two maps are merged due to missing a separating comma
between them. I would expect it to fail with a syntax error.

Is this intended behaviour?

Regards
Knut
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140701/1f922d04/attachment.htm>


More information about the erlang-bugs mailing list