Hi! Going through the elixir-lang.org getting started guides and have a question about Scripted mode section.
You can see this point in the guide:
When executed, both extensions compile and load their modules into memory, although only .ex files write their bytecode to disk in the format of .beam files.
And further:
And execute it as:
$ elixir math.exs
The file will be compiled in memory and executed, printing β3β as the result. No bytecode file will be created.
So, the question is here: one can do the same thing with *.ex
extension and run it with:
elixir math.ex
And in this case I also see no compiled *.beam
file.
Guess *.exs
compilation will not write *.beam
file to the disk if you do it with mix
. Is it correct?
Thanks!