[erlang-bugs] Parser bug: if missing ", " in list between records, the first is ignored, and no parser warnings are given.

Roland Karlsson roland.karlsson@REDACTED
Sun Nov 16 21:47:08 CET 2014


Whats odd with that?

Why should #foo{}{} be legal?
What should it mean?

And, of course {}#foo{} is legal.

Using tuple syntax for creating a record is perfectly legal.
And then using record syntax to modify the tuple/record is
perfectly fine. A strange way of doing it maybe, but it
is a natural result of records being tuples.


/Roland




On Sun, 16 Nov 2014 21:32:09 +0100
PAILLEAU Eric <eric.pailleau@REDACTED> wrote:

> More odd :
> 
> 3> #test{a=5}{test, 7,6}.
> * 2: syntax error before: '{'
> 
> 3> {test, 7,6}#test{a=5}.
> #test{a = 5,b = 6}
> 
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs

-- 
Roland Karlsson <roland.karlsson@REDACTED>




More information about the erlang-bugs mailing list