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]>
Also that is perfectly fine.
Nothing strange at all.

You create a record, using tuple syntax, and then modifies
it using record syntax.

Extremely ugly and not recommended. Here I can agree that
a warning is motivated. But ... it is perfectly legal Erlang syntax.

You are misunderstanding the record and tuple syntax.

/Roland




On Sun, 16 Nov 2014 21:45:43 +0100
PAILLEAU Eric <[email protected]> wrote:

> Le 16/11/2014 21:32, PAILLEAU Eric a écrit :
> >
> > 3> #test{a=5}{test, 7,6}.
> > * 2: syntax error before: '{'
> 
> but :
> 
> 2> ({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.