What is the Difference Between Import, Alias and Use

From ElixirBlocks
Revision as of 08:52, 13 October 2023 by Admin (talk | contribs) (Created page with "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== ?")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

?