AFAIK, then the compiler does not perform const evaluation.
iex(9)> quote(do: 1+2*3)
{:+, [context: Elixir, imports: [{1, Kernel}, {2, Kernel}]],
[1, {:*, [context: Elixir, imports: [{2, Kernel}]], [2, 3]}]}
iex(10)> quote(do: 1+2*3)
7
Are there any plans to implement this, if not what is the recommended
approach to do this, when working on an AST.
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/elixir-lang-core/b7b48090-7022-4f14-b92b-2732272fc151n%40googlegroups.com.