Proposal: IEx.Helpers.use_if_available/2

28 views
Skip to first unread message

Wojtek Mach

unread,
Jan 24, 2018, 11:19:10 AM1/24/18
to elixir-lang-core
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!

José Valim

unread,
Jan 24, 2018, 2:37:38 PM1/24/18
to elixir-l...@googlegroups.com
Please do send a PR!
--


José Valim
Founder and 
Director of R&D
Reply all
Reply to author
Forward
0 new messages