title: Elixir: use vs import
body: <p>What's the difference between <code>use</code> and <code>import</code>?</p>
  
  <blockquote>
    <p>use is a simple mechanism for using a given module into the current context</p>
  </blockquote>
  
  <p><a href="https://hexdocs.pm/elixir/Kernel.SpecialForms.html#import/2" rel="noreferrer">https://hexdocs.pm/elixir/Kernel.SpecialForms.html#import/2</a></p>
  
  <blockquote>
    <p>Imports function and macros from other modules</p>
  </blockquote>
  
  <p>Looks like one difference is <code>import</code> let's you pick out the specific functions/macros whereas <code>use</code> brings everything in.</p>
  
  <p>Are there other differences? When would you use one over the other?</p>