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 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:
And in this case I also see no compiled
*.exs compilation will not write
*.beam file to the disk if you do it with
mix. Is it correct?