Re: Parser bug: if missing ", " in list between records, the first is ignored, and no parser warnings are given.

Roland Karlsson <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
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 <[email protected]> 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
> [email protected]
> http://erlang.org/mailman/listinfo/erlang-bugs

-- 
Roland Karlsson <[email protected]>

_______________________________________________
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.