Keyword List, using '@' in key atom, bug?

47 views
Skip to first unread message

greggreg

unread,
Feb 23, 2015, 10:24:26 AM2/23/15
to elixir-l...@googlegroups.com
If you use an `@` symbol in a key for a concise syntax keyword list you get a compile error:

iex(1)> [{:a@, 1}]  # regular fine
[a@: 1]
iex
(2)> [a@: 1]     # concise not fine
** (CompileError) iex:2: undefined function a/1

If you use just the `@` symbol, you're fine:
iex(5)> [{:@, 1}]
[@: 1]
iex
(6)> [@: 1]
[@: 1]


Bug?

Tested in iex off github pull from this morning. (1.1.0-dev) Erlang/OTP 17

José Valim

unread,
Feb 23, 2015, 10:34:40 AM2/23/15
to elixir-l...@googlegroups.com
Bug yes, please send a report.



José Valim
Skype: jv.ptec
Founder and Lead Developer

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/eebb6833-6de5-442e-8510-909be0e996fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

greggreg

unread,
Feb 23, 2015, 2:15:13 PM2/23/15
to elixir-l...@googlegroups.com, jose....@plataformatec.com.br
Reply all
Reply to author
Forward
0 new messages