You can still undo it by bringing all of List and then using except. So you have an option to bring it all in once again. If it behaved like you proposed, then it would be impossible to filter without fully repeating the previous declaration.
*José Valimwww.plataformatec.com.br <http://www.plataformatec.com.br/>Founder and Director of R&D* On Sun, Sep 24, 2017 at 6:49 PM, Krzysztof Wende <[email protected]> wrote: > 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 > <https://groups.google.com/d/msgid/elixir-lang-core/c66685df-3382-41a6-9c41-50959a72c205%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAGnRm4LvM2OnVK%2ByYy6nZiDZJEv1M%3DxkmsrzMSjbSDqsUBhePA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
