What's the difference between use and import? use is a simple mechanism for using a given module into the current context https://hexdocs.pm/elixir/Kernel.SpecialForms.html#import/2 Imports function and macros from other modules Looks like one difference is import let's you pick out the specific functions/macros whereas use brings everything in. Are there other differences? When would you use one
