Hello,
I try to create modules attributes with reserved names or a capital letter but I have syntax errors. But I could not find some documentation about it. Could someone explain me why the parser (or the compiler ?) chokes here ?
Thank you
iex(1)> defmodule X do
...(1)> @when "ok"
...(1)> def add, do: @when
...(1)> end
** (SyntaxError) iex:2: syntax error before: 'when'
iex(1)> defmodule X do
...(1)> @Chen "ok"
...(1)> def add, do: @Chen
...(1)> end
** (SyntaxError) iex:2: syntax error before: "ok"