Elixir: When to use .ex and when .exs files

后端 未结 3 923
悲哀的现实
悲哀的现实 2020-12-24 04:33

Elixir\'s documentation states that

In addition to the Elixir file extension .ex, Elixir also supports .exs files for scripting. Elixir treats both

3条回答
  •  粉色の甜心
    2020-12-24 04:56

    I check it in Elixir version 1.9.1 and both extensions .ex, .exs will be compiled with elixirc. Another words, we get bytecode (.beam file) in both cases.

提交回复
热议问题