Missing comma between maps results in merge

Knut Nesheim <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CACSRAtXruPUezdFUoUbVP0JbxsWOzXDH9gLrYHLSmCrjj_s_EA@mail.gmail.com>
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

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.