There is discussion about this here.
I can’t quite visualize what you’re trying to do without seeing code, but if you have code like this:
defmodule A do
@module B
end
I would advice against that since it results in B
being a compile time dependency of A
. If you have a lot of stuff like this, compilation can start to get really slow if you aren’t careful about your dependency graph. Otherwise—carry on.