What is the Difference Between Import, Alias and Use

From ElixirBlocks
Jump to: navigation, search

These are keywords that let you use code across modules.


Alias

A shortcut to another module. The syntax lets you reference a function without typing out the entire module names/hierarchy.

Import

Pulls all functions from a module into the current module. You use the imported module functions in the current module.

Use

?