I met this problem just now. How about adding this to doc of unquote?

On Monday, April 28, 2014 at 1:06:27 PM UTC+8, José Valim wrote:
>
> Not all values are valid quoted expressions. For example, an anonymous 
> function is not a valid quoted expressions. Tuples with a number of 
> elements different than 2 are not quoted expressions too. They don't 
> represent code, they represent data, and some of them in a way that cannot 
> be converted to code.
>
>
>
> *José Valim*
> www.plataformatec.com.br
> Skype: jv.ptec
> Founder and Lead Developer
>
>
> On Mon, Apr 28, 2014 at 3:49 AM, Alexei Sholik <[email protected] 
> <javascript:>> wrote:
>
>> What is invalid about this expression?
>>
>> ** (CompileError) lib/beamie/views/play_view.ex: invalid quoted 
>> expression: Beamie.Helpers.Template[id: "output", name: "", text: "<div 
>> class=\"{{class}}\">\n  <span class=\"label 
>> label-default\">{{tag}}</span>\n  <pre 
>> class=\"codeOutput\"></pre>\n</div>\n"]
>>     (elixir) src/elixir_exp.erl:416: :elixir_exp.expand_arg/2
>>     (stdlib) lists.erl:1352: :lists.mapfoldl/3
>>     (elixir) src/elixir_exp.erl:389: :elixir_exp.expand_list/4
>>     (elixir) src/elixir_exp.erl:366: :elixir_exp.expand/2
>>     (elixir) src/elixir_exp_clauses.erl:15: :elixir_exp_clauses.def/5
>>     (elixir) src/elixir_def.erl:158: :elixir_def.translate_definition/8
>>     (elixir) src/elixir_def.erl:89: :elixir_def.store_definition/9
>>
>> -- 
>> Best regards
>> Alexei Sholik 
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/ca9f0d76-0d83-4a1c-a420-db76d2aea0a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to