On occasion, I want to use multiple import statements for the same module, eg:

# import Common, only: [ ii: 2 ]        # uncomment for debugging
  import Common, only: [ str_list: 1 ]

By way of explanation, Common.ii/2 is a tracing routine which is mostly used
for debugging.  So, I want it to be available when I need it, but not generate
compiler warnings when it's not being used.  For details, see:

https://elixirforum.com/t/enabling-access-to-occasionally-used-eg-tracing-functions/22517

Unfortunately, when I tried the approach above, I found that only the last 
import
took effect; the first one was silently ignored (!).  Could import be extended 
to
allow multiple imports of the same module?

-r

-- 
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/45C899A6-9830-422E-8968-AE9E50D06B49%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to