I said about internal
/i
and keep module
part which you didn’t.
So here is real example:
defmodule Example do
defmodulei Sample do
# …
end
defp sample do
# …
end
end
Because private function (defp
) is working differently than private module in this proposal (defmodulep
). Look that private functions can’t be accessed in other modules at all, but there would be a way to access private modules even in other app (look my question about possible hack).