erlangelixir

In Elixir, why is "alias" preferred over "import" for importing the modules?


Note that imports are generally discouraged in the language. When working on your own code, prefer alias to import.

I found this statement in the documentation but further explanation is not available there.


Solution

  • Few reasons: