elixir - How ex file is going to compile -


when have elixir file , compile it, compiler first? compile ex erlang or directly bytecode?
when write following code session interaction

iex(4)> double = fn x -> x * 2 end #function<6.54118792/1 in :erl_eval.expr/5> 

what compiler do? compile erlang or directly bytecode?

it compiles code erlang ast, compiled bytecode compile module otp. relevant source code in elixir_compiler.erl:

compile:noenv_forms([no_auto_import()|forms], [return, {source, source}|erlopts]) 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -