I enjoy Elixir but this situation is quite unfortunate, there is alias, import require and use for referencing / pulling in code external to a file in some way or another, plus the possibility of calling a function from another module directly by name without an import statement using the module name – and the most annoying part of it is that none of these give an indication of which file the other module is from, which is like 50% of the utility of an import statement for me.
Instead there is this pattern of naming modules based on the file path they are located in, which is not enforced.
Doesn't Elixir (and Erlang for that matter) specifically require a module to not be in a specific place in order to have hot reloading of modules? Though I suppose you could still have hot reloading and require a module to be in a specific place.
__jonas|1 year ago
Instead there is this pattern of naming modules based on the file path they are located in, which is not enforced.
smj-edison|1 year ago