Skip to content

Instantly share code, notes, and snippets.

@darkofabijan
Created January 31, 2014 12:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkofabijan/8731076 to your computer and use it in GitHub Desktop.
Save darkofabijan/8731076 to your computer and use it in GitHub Desktop.
iex(33)> Code.eval_quoted(quote do: [unquote_splicing([{4, "show/:id"}])])
{[{4, "show/:id"}], []}
iex(34)> Code.eval_quoted(quote do: [unquote_splicing([{4, "show/:id", 1, 2}])])
** (CompileError) nofile: invalid quoted expression: {4, "show/:id", 1, 2}
(elixir) src/elixir_exp.erl:408: :elixir_exp.expand_arg/2
(elixir) src/elixir_exp.erl:384: :elixir_exp.expand_list/4
(elixir) src/elixir_exp.erl:358: :elixir_exp.expand/2
(elixir) src/elixir.erl:150: :elixir.quoted_to_erl/3
(elixir) src/elixir.erl:134: :elixir.eval_forms/4
(elixir) lib/code.ex:165: Code.do_eval_quoted/3
iex(34)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment