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