You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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!