I’m trying to understand why Elixir creates a runtime dependency when we use a module on a function clause.
For instance:
# lib/a.ex
defmodule A do
end
# lib/b.ex
defmodule B do
def foo(A) do
IO.inspect("A")
end
end
Here module B has a dependency on A even though we aren’t using anything related to the module itself, it just so happens that A is an atom and also a module. If it was just an atom everything would work the same way and we (obviously) wouldn’t have a dependency.


















