[erlang-bugs] [erlang-questions] bug or feature?

Jan Henry Nystrom jan@REDACTED
Wed Aug 1 21:26:04 CEST 2007


Dmitriy Kargapolov wrote:
> Is it a bug or some magic feature in erlang shell when using atom query 
> with no quotes?
> 
> Eshell V5.5.4  (abort with ^G)
> 1> {query, "lalala"}.
> ** 1: syntax error before: ',' **
> 1> {'query', "lalala"}.
> {'query',"lalala"}
> 2>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

Hi Dmitriy,
It is a (mis)feature, query is a keyword that is used by the
Mnesia query language Mnmosyne. It bit me quite a few times
when it had been introduced :-).

/Cheers Henry


-- 
Jan Henry Nystrom <jan@REDACTED>
Training & Research Manager @ Erlang Training and Consulting Ltd
http://www.erlang-consulting.com



More information about the erlang-bugs mailing list