Ok,
But now let's imagine this scenario:
defmodule MyHelper do
defmacro __using__(_) do
quote do
import List, only: [foldl: 3]
end
end
end
defmodule A do
use MyHelper
import List, except: [zip: 1]
def test, do: foldr([1,2,3], 10, &(&1 + &2))
end
We'd obviosly expect in module A to have all of the List functions except
zip, but we actually get none except for foldl.
--
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/c66685df-3382-41a6-9c41-50959a72c205%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.