Hello,

I'd like to propose to introduce a `use_if_available/2` to complement 
`import_if_available/2`.
On our project we can do `use Shared` to get common aliases and imports. We 
can't use it in `.iex.exs` though because it won't work without `-S mix`; 
we have to copy-paste stuff to .iex.exs.
Similar small inconvenience on hexpm: [1] [2]

It's obviously not the end of the world to do some copy-pasting. I'd be 
happy to prepare a PR if accepted!

[1] 
https://github.com/hexpm/hexpm/blob/ce72c361e6374c28a81a2d4413677bc97294b1e2/.iex.exs#L2:L36
[2] 
https://github.com/hexpm/hexpm/blob/ce72c361e6374c28a81a2d4413677bc97294b1e2/lib/hexpm/web/web.ex#L98:L137

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/38e89769-2f6a-432b-94bf-9054a1ae6368%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to